Wrap 120 characters in gradle file
This commit is contained in:
76
build.gradle
76
build.gradle
@@ -1,62 +1,64 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
id 'java'
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
maven {
|
maven {
|
||||||
url = 'https://repo.runelite.net'
|
url = 'https://repo.runelite.net'
|
||||||
content {
|
content {
|
||||||
includeGroupByRegex("net\\.runelite.*")
|
includeGroupByRegex("net\\.runelite.*")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
def runeLiteVersion = 'latest.release'
|
def runeLiteVersion = 'latest.release'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly group: 'net.runelite', name:'client', version: runeLiteVersion
|
compileOnly group: 'net.runelite', name: 'client', version: runeLiteVersion
|
||||||
|
|
||||||
compileOnly 'org.projectlombok:lombok:1.18.20'
|
compileOnly 'org.projectlombok:lombok:1.18.20'
|
||||||
annotationProcessor 'org.projectlombok:lombok:1.18.20'
|
annotationProcessor 'org.projectlombok:lombok:1.18.20'
|
||||||
|
|
||||||
testImplementation 'junit:junit:4.12'
|
testImplementation 'junit:junit:4.12'
|
||||||
testImplementation group: 'net.runelite', name:'client', version: runeLiteVersion
|
testImplementation group: 'net.runelite', name: 'client', version: runeLiteVersion
|
||||||
testImplementation group: 'net.runelite', name:'jshell', version: runeLiteVersion
|
testImplementation group: 'net.runelite', name: 'jshell', version: runeLiteVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
group = 'com.toofifty'
|
group = 'com.toofifty'
|
||||||
version = '1.0.8'
|
version = '1.0.8'
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
tasks.withType(JavaCompile).configureEach {
|
||||||
options.encoding = 'UTF-8'
|
options.encoding = 'UTF-8'
|
||||||
options.release.set(11)
|
options.release.set(11)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register('shadowJar', Jar) {
|
tasks.register('shadowJar', Jar) {
|
||||||
dependsOn configurations.testRuntimeClasspath
|
dependsOn configurations.testRuntimeClasspath
|
||||||
manifest {
|
manifest {
|
||||||
attributes('Main-Class': 'com.toofifty.easygiantsfoundry.EasyGiantsFoundryPluginTest', 'Multi-Release': true)
|
attributes('Main-Class':
|
||||||
}
|
'com.toofifty.easygiantsfoundry.EasyGiantsFoundryPluginTest',
|
||||||
|
'Multi-Release': true)
|
||||||
|
}
|
||||||
|
|
||||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||||
from sourceSets.main.output
|
from sourceSets.main.output
|
||||||
from sourceSets.test.output
|
from sourceSets.test.output
|
||||||
from {
|
from {
|
||||||
configurations.testRuntimeClasspath.collect { file ->
|
configurations.testRuntimeClasspath.collect { file ->
|
||||||
file.isDirectory() ? file : zipTree(file)
|
file.isDirectory() ? file : zipTree(file)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
exclude 'META-INF/INDEX.LIST'
|
exclude 'META-INF/INDEX.LIST'
|
||||||
exclude 'META-INF/*.SF'
|
exclude 'META-INF/*.SF'
|
||||||
exclude 'META-INF/*.DSA'
|
exclude 'META-INF/*.DSA'
|
||||||
exclude 'META-INF/*.RSA'
|
exclude 'META-INF/*.RSA'
|
||||||
exclude '**/module-info.class'
|
exclude '**/module-info.class'
|
||||||
|
|
||||||
group = BasePlugin.BUILD_GROUP
|
group = BasePlugin.BUILD_GROUP
|
||||||
archiveClassifier.set('shadow')
|
archiveClassifier.set('shadow')
|
||||||
archiveFileName.set("${rootProject.name}-${project.version}-all.jar")
|
archiveFileName.set("${rootProject.name}-${project.version}-all.jar")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user