@@ -10,8 +10,8 @@ plugins {
1010 id(" io.github.gradle-nexus.publish-plugin" ) version " 2.0.0"
1111}
1212
13- group = " com .github.elebras1"
14- version = System .getenv(" GITHUB_REF_NAME" ) ? : project.findProperty(" version" ) as String? ? : " 0.1-SNAPSHOT"
13+ group = " io .github.elebras1"
14+ version = System .getenv(" GITHUB_REF_NAME" )?.removePrefix( " v " ) ? : project.findProperty(" version" ) as String? ? : " 0.1-SNAPSHOT"
1515
1616repositories {
1717 mavenCentral()
@@ -121,7 +121,7 @@ val compileFlecsNative by tasks.registering(Exec::class) {
121121}
122122
123123val generateFlecsBindings by tasks.registering(Exec ::class ) {
124- description = " Generate Java FFM bindings using jextract"
124+ description = " Generate Java FFM bindings using jextract (maintainer-only task, run when updating Flecs version) "
125125 group = " flecs"
126126
127127 dependsOn(compileFlecsNative)
@@ -229,7 +229,8 @@ tasks.jar {
229229 duplicatesStrategy = DuplicatesStrategy .EXCLUDE
230230
231231 from(compileProcessor.get().destinationDirectory)
232- from(copyProcessorResources)
232+
233+ from(copyProcessorResources.get().destinationDir)
233234
234235 from(configurations.runtimeClasspath.get().map {
235236 if (it.isDirectory) it else zipTree(it)
@@ -254,7 +255,6 @@ val cleanFlecs by tasks.registering(Delete::class) {
254255 group = " flecs"
255256
256257 delete(flecsDir)
257- delete(generatedSourcesDir)
258258 delete(layout.buildDirectory.dir(" natives" ))
259259}
260260
@@ -266,11 +266,15 @@ tasks.withType<JavaExec> {
266266 jvmArgs(" --enable-native-access=ALL-UNNAMED" )
267267}
268268
269+ tasks.named(" sourcesJar" ) {
270+ dependsOn(copyFlecsNative, tasks.compileJava)
271+ }
272+
269273configure< io.github.gradlenexus.publishplugin.NexusPublishExtension > {
270274 repositories {
271275 sonatype {
272- nexusUrl.set(uri(" https://s01.oss .sonatype.org /service/local/" ))
273- snapshotRepositoryUrl.set(uri(" https://s01.oss. sonatype.org/content/repositories/ snapshots/" ))
276+ nexusUrl.set(uri(" https://ossrh-staging-api.central .sonatype.com /service/local/" ))
277+ snapshotRepositoryUrl.set(uri(" https://central. sonatype.com/repository/maven- snapshots/" ))
274278 username.set(System .getenv(" OSSRH_USERNAME" ))
275279 password.set(System .getenv(" OSSRH_PASSWORD" ))
276280 }
@@ -280,7 +284,7 @@ configure<io.github.gradlenexus.publishplugin.NexusPublishExtension> {
280284publishing {
281285 publications {
282286 create<MavenPublication >(" maven" ) {
283- groupId = " com .github.elebras1"
287+ groupId = " io .github.elebras1"
284288 artifactId = " flecs-java"
285289 version = project.version.toString()
286290
0 commit comments