Skip to content

Commit

Permalink
update build script, bump version to 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ChAoSUnItY committed Jun 13, 2022
1 parent 5a74e72 commit d89f930
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "chaos.unity.nenggao"
version = "1.0.1"
version = "1.0.2"

repositories {
mavenCentral()
Expand All @@ -28,4 +28,28 @@ dependencies {

tasks.getByName<Test>("test") {
useJUnitPlatform()
}

val sourcesJar by tasks.registering(Jar::class) {
classifier = "sources"
from(sourceSets.main.get().allSource)
}

publishing {
repositories {
maven {
// change to point to your repo, e.g. http://my.org/repo
url = uri("$buildDir/repo")
}
}
publications {
register("mavenJava", MavenPublication::class) {
groupId = group.toString()
artifactId = "nenggao"
version = version

from(components["java"])
artifact(sourcesJar.get())
}
}
}

0 comments on commit d89f930

Please sign in to comment.