Skip to content

Commit

Permalink
ci(java): produce artifact with no classifier without native
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaarf committed Sep 18, 2024
1 parent 3e68897 commit 55b8e38
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions dist/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,25 @@ dependencies {
annotationProcessor 'org.projectlombok:lombok:1.18.34'
}

shadowJar {
jar.archiveClassifier = archiveClassifier = osdetector.classifier
dependencies {
include(dependency('com.github.adamheinrich:native-utils:master-SNAPSHOT'))
}
}

def rustDir = projectDir.toPath()
.parent
.parent
.resolve('target')
.resolve('release')
.toFile()

processResources {
shadowJar {
outputs.upToDateWhen { false } // no caching
from(rustDir) {
include('*.dll')
include('*.so')
include('*dylib')
into('natives/')
}

archiveClassifier = osdetector.classifier
dependencies {
include(dependency('com.github.adamheinrich:native-utils:master-SNAPSHOT'))
}
}

tasks.register('cargoBuild', Exec) {
Expand Down

0 comments on commit 55b8e38

Please sign in to comment.