Skip to content

Commit

Permalink
cleanup, updated to 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Pesekjak committed Mar 11, 2024
1 parent 95f9681 commit 23dfce8
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 55 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ dependencies {
#### Gradle Plugin
> [!NOTE]
> Gradle plugin is a key feature of Paklet. It modifies bytecode of compiled packet classes by adding hidden getters and setters which are later
> used by generated packet readers and writers to ensure no reflection is used during the serialization to achieve higher speeds.
> If unused, the packet serialization will be noticeably slower.
> used by generated packet readers and writers to achieve higher speeds.
> If unused, the packet serialization will be slower.
```kotlin
buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Group and version
group = org.machinemc.paklet
version = 1.0.0
version = 1.0.1

# Dependency versions
jetbrainsAnnotations = 24.1.0
Expand Down
2 changes: 1 addition & 1 deletion paklet-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ publishing {
create<MavenPublication>("maven") {
groupId = "org.machinemc"
artifactId = "paklet-api"
version = "1.0.0"
version = project.version.toString()
from(components["java"])
}
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion paklet-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ publishing {
create<MavenPublication>("maven") {
groupId = "org.machinemc"
artifactId = "paklet-core"
version = "1.0.0"
version = project.version.toString()
from(components["java"])
}
}
Expand Down
19 changes: 16 additions & 3 deletions paklet-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
import java.io.FileReader
import java.util.*

plugins {
`kotlin-dsl`
`java-gradle-plugin`
`maven-publish`
}

group = "org.machinemc"
version = "1.0.0"
val rootProperties = Properties()
rootProperties.load(FileReader(File(rootDir.parent, "gradle.properties")))

val group: String by rootProperties
setGroup(group)

val version: String by rootProperties
setVersion(version)

repositories {
mavenCentral()
Expand All @@ -16,6 +25,10 @@ dependencies {
implementation(libs.google.gson)
}

java {
withSourcesJar()
}

publishing {
repositories {
maven {
Expand All @@ -31,7 +44,7 @@ publishing {
create<MavenPublication>("maven") {
groupId = "org.machinemc"
artifactId = "paklet-plugin"
version = "1.0.0"
version = project.version.toString()
from(components["kotlin"])
}
}
Expand Down
2 changes: 1 addition & 1 deletion paklet-processor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ publishing {
create<MavenPublication>("maven") {
groupId = "org.machinemc"
artifactId = "paklet-processor"
version = "1.0.0"
version = project.version.toString()
from(components["java"])
}
}
Expand Down

0 comments on commit 23dfce8

Please sign in to comment.