forked from Geoffrey/Geoffrey-MC-Plugin
86 lines
1.8 KiB
Groovy
86 lines
1.8 KiB
Groovy
/*
|
|
* This file was generated by the Gradle 'init' task.
|
|
*/
|
|
|
|
plugins {
|
|
id 'java'
|
|
id 'com.github.johnrengelman.shadow' version '8.1.1'
|
|
}
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
maven {
|
|
url = uri('https://hub.spigotmc.org/nexus/content/groups/public/')
|
|
}
|
|
|
|
maven {
|
|
url = uri('https://mvnrepository.com/artifact/')
|
|
}
|
|
|
|
maven {
|
|
url = uri('https://mvn.jojodev.com/releases')
|
|
|
|
// allowInsecureProtocol = true
|
|
}
|
|
|
|
maven {
|
|
url = uri('https://jcenter.bintray.com')
|
|
|
|
// allowInsecureProtocol = true
|
|
}
|
|
|
|
maven {
|
|
url = uri('https://jitpack.io')
|
|
}
|
|
|
|
maven {
|
|
url = uri('https://repo.maven.apache.org/maven2/')
|
|
}
|
|
|
|
maven {
|
|
url = uri('https://oss.sonatype.org/content/groups/public/')
|
|
}
|
|
|
|
maven {
|
|
url = uri('https://mvnrepository.com/artifact/org.apache.commons/commons-lang3')
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'xyz.etztech:plugin-api:1.0.7'
|
|
compileOnly 'org.spigotmc:spigot-api:1.20.1-R0.1-SNAPSHOT'
|
|
implementation 'org.apache.commons:commons-lang3:3.13.0'
|
|
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
}
|
|
|
|
group = 'com.zerohighdef'
|
|
version = '2.0'
|
|
description = 'GeoffreyMC'
|
|
java.sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
tasks.withType(Javadoc) {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
shadowJar {
|
|
project.configurations.implementation.canBeResolved = true
|
|
configurations = [project.configurations.implementation]
|
|
relocate 'xyz.etztech.core', 'shadow.xyz.etztech.core'
|
|
archiveClassifier.set('')
|
|
}
|
|
|
|
tasks.named('test', Test) {
|
|
useJUnitPlatform()
|
|
|
|
maxHeapSize = '1G'
|
|
|
|
testLogging {
|
|
events "passed"
|
|
}
|
|
}
|