Skip to content

Commit

Permalink
COMMANDBOX-1433
Browse files Browse the repository at this point in the history
  • Loading branch information
bdw429s committed Feb 28, 2022
1 parent 5e185f4 commit e39ad8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
14 changes: 4 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ apply from: 'gradle/config.gradle'
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
//options.bootstrapClasspath = fileTree( include: [ '**/jce.jar','**/rt.jar' ], dir: "${System.properties['java.home']}/" )
options.encoding = 'UTF-8'
options.compilerArgs += '-Xlint:unchecked'
options.compilerArgs += '-Xlint:deprecation'
Expand Down Expand Up @@ -51,8 +50,6 @@ tasks.withType(Test) {
sourceSets {
main {
output.dir(generatedResources, builtBy: 'generateVersionFile')
// Add the dist/libs/<version>/ folder into the compile classpath
// compileClasspath += fileTree(dir: "$rootDir/dist/libs/" + project.version).matching { include "*.jar" }
}
}

Expand Down Expand Up @@ -93,13 +90,6 @@ jar {
)
}

// This is supposed to change where the jar file is output, but it also changes the default
// compileclasspath (see above). Put jar in a folder named after the version to
// simplify S3 sync
/* tasks.withType(Jar) {
destinationDir = file("$rootDir/dist/libs/" + project.version)
} */

task javadocJar(type: Jar) {
archiveClassifier = 'javadoc'
from javadoc
Expand All @@ -114,6 +104,10 @@ shadowJar {
archiveClassifier = null
mergeServiceFiles()
exclude('**/*.java')
manifest {
attributes(
"Multi-Release": true )
}
}
apply from: 'gradle/proguard.gradle'
apply from: 'gradle/maven.gradle'
Expand Down
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
buildscript {
repositories { maven { url "https://plugins.gradle.org/m2/" } }
dependencies { classpath "com.github.jengelman.gradle.plugins:shadow:4.0.2" }
dependencies { classpath "com.github.jengelman.gradle.plugins:shadow:5.2.0" }
}
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

Expand Down

0 comments on commit e39ad8e

Please sign in to comment.