Skip to content

Commit

Permalink
build.gradle cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
d0by1 committed Aug 29, 2022
1 parent b561c90 commit c5d62de
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,17 @@ dependencies {
annotationProcessor 'org.jetbrains:annotations:23.0.0'
}

sourceCompatibility = 1.8
targetCompatibility = 1.8

compileJava {
options.encoding = 'UTF-8'
}

javadoc {
failOnError false
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
options.addStringOption('charSet', 'UTF-8')
java {
def javaVersion = JavaVersion.VERSION_1_8
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
}

publishing {
Expand All @@ -64,15 +63,6 @@ processResources {
}
}

jar {
dependsOn configurations.runtimeClasspath
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archivesBaseName = rootProject.name
from {
configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
}
}

shadowJar {
relocate "org.bstats", "eu.decentsoftware.holograms.metrics"
}

0 comments on commit c5d62de

Please sign in to comment.