Skip to content

Commit

Permalink
test shadow apache commons
Browse files Browse the repository at this point in the history
  • Loading branch information
kozarezvlad committed Sep 24, 2024
1 parent 565902f commit 064db5f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

/*
* This file was generated by the Gradle 'init' task.
*
Expand All @@ -10,6 +12,7 @@ plugins {
id 'java'
id 'eclipse'
id 'org.jetbrains.kotlin.jvm'
id 'com.gradleup.shadow' version '8.3.2'
}
apply from: '../ic4j-agent/upload-github.gradle'

Expand Down Expand Up @@ -45,6 +48,16 @@ task fatJar(type: Jar) {
with jar
}

tasks.named('shadowJar', ShadowJar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes('Implementation-Title': 'ic4j-agent',
'Implementation-Version': project.version)
}
archiveBaseName = 'ic4j-agent'
relocate 'org.apache.commons', 'shadow.apache.commons'
}

test {
useJUnitPlatform()

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion upload-github.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ afterEvaluate {
artifactId = "$project.artifactId"
version = "$project.artifactVersion"

artifact jar
components.shadow
// from components.java

pom.withXml {
Expand Down

0 comments on commit 064db5f

Please sign in to comment.