Skip to content

Commit 23dfce8

Browse files
committed
cleanup, updated to 1.0.1
1 parent 95f9681 commit 23dfce8

10 files changed

Lines changed: 22 additions & 55 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ dependencies {
132132
#### Gradle Plugin
133133
> [!NOTE]
134134
> Gradle plugin is a key feature of Paklet. It modifies bytecode of compiled packet classes by adding hidden getters and setters which are later
135-
> used by generated packet readers and writers to ensure no reflection is used during the serialization to achieve higher speeds.
136-
> If unused, the packet serialization will be noticeably slower.
135+
> used by generated packet readers and writers to achieve higher speeds.
136+
> If unused, the packet serialization will be slower.
137137
```kotlin
138138
buildscript {
139139
repositories {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Group and version
22
group = org.machinemc.paklet
3-
version = 1.0.0
3+
version = 1.0.1
44

55
# Dependency versions
66
jetbrainsAnnotations = 24.1.0

paklet-api/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ publishing {
1818
create<MavenPublication>("maven") {
1919
groupId = "org.machinemc"
2020
artifactId = "paklet-api"
21-
version = "1.0.0"
21+
version = project.version.toString()
2222
from(components["java"])
2323
}
2424
}

paklet-api/src/main/java/org/machinemc/paklet/translation/TranslationHandler.java

Lines changed: 0 additions & 20 deletions
This file was deleted.

paklet-api/src/main/java/org/machinemc/paklet/translation/TranslationResult.java

Lines changed: 0 additions & 8 deletions
This file was deleted.

paklet-api/src/main/java/org/machinemc/paklet/translation/TranslationState.java

Lines changed: 0 additions & 8 deletions
This file was deleted.

paklet-api/src/main/java/org/machinemc/paklet/translation/TranslatorMessenger.java

Lines changed: 0 additions & 10 deletions
This file was deleted.

paklet-core/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ publishing {
3333
create<MavenPublication>("maven") {
3434
groupId = "org.machinemc"
3535
artifactId = "paklet-core"
36-
version = "1.0.0"
36+
version = project.version.toString()
3737
from(components["java"])
3838
}
3939
}

paklet-plugin/build.gradle.kts

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1+
import java.io.FileReader
2+
import java.util.*
3+
14
plugins {
25
`kotlin-dsl`
36
`java-gradle-plugin`
47
`maven-publish`
58
}
69

7-
group = "org.machinemc"
8-
version = "1.0.0"
10+
val rootProperties = Properties()
11+
rootProperties.load(FileReader(File(rootDir.parent, "gradle.properties")))
12+
13+
val group: String by rootProperties
14+
setGroup(group)
15+
16+
val version: String by rootProperties
17+
setVersion(version)
918

1019
repositories {
1120
mavenCentral()
@@ -16,6 +25,10 @@ dependencies {
1625
implementation(libs.google.gson)
1726
}
1827

28+
java {
29+
withSourcesJar()
30+
}
31+
1932
publishing {
2033
repositories {
2134
maven {
@@ -31,7 +44,7 @@ publishing {
3144
create<MavenPublication>("maven") {
3245
groupId = "org.machinemc"
3346
artifactId = "paklet-plugin"
34-
version = "1.0.0"
47+
version = project.version.toString()
3548
from(components["kotlin"])
3649
}
3750
}

paklet-processor/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ publishing {
2727
create<MavenPublication>("maven") {
2828
groupId = "org.machinemc"
2929
artifactId = "paklet-processor"
30-
version = "1.0.0"
30+
version = project.version.toString()
3131
from(components["java"])
3232
}
3333
}

0 commit comments

Comments
 (0)