66 lines
1.8 KiB
Groovy
66 lines
1.8 KiB
Groovy
buildscript {
|
|
repositories {
|
|
gradlePluginPortal()
|
|
}
|
|
dependencies {
|
|
classpath "com.github.johnrengelman:shadow:8.1.1"
|
|
classpath group: "org.yaml", name: "snakeyaml", version: "1.19"
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id "net.researchgate.release" version "3.0.2"
|
|
}
|
|
|
|
apply plugin: "java-library"
|
|
apply plugin: "eclipse"
|
|
apply plugin: "com.github.johnrengelman.shadow"
|
|
|
|
|
|
version = "1.5.21.1"
|
|
group = "fr.azures04.modun"
|
|
archivesBaseName = "authlib"
|
|
|
|
|
|
repositories {
|
|
jcenter()
|
|
maven {
|
|
url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"
|
|
}
|
|
maven { url = "https://oss.sonatype.org/content/repositories/snapshots" }
|
|
maven { url = "https://oss.sonatype.org/content/repositories/central" }
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.apache.logging.log4j:log4j-core:2.9.0")
|
|
implementation("com.google.code.gson:gson:2.8.6")
|
|
implementation("org.apache.commons:commons-lang3:3.3.2")
|
|
implementation("commons-io:commons-io:2.4")
|
|
implementation("javax.annotation:javax.annotation-api:1.3.2")
|
|
implementation("com.google.code.findbugs:jsr305:3.0.2")
|
|
implementation("com.google.guava:guava:15.0")
|
|
implementation("commons-codec:commons-codec:1.9")
|
|
}
|
|
|
|
sourceCompatibility = targetCompatibility = '1.8'
|
|
compileJava {
|
|
sourceCompatibility = targetCompatibility = '1.8'
|
|
}
|
|
|
|
release {
|
|
failOnPublishNeeded = true
|
|
failOnSnapshotDependencies = true
|
|
failOnUnversionedFiles = true
|
|
failOnUpdateNeeded = true
|
|
preTagCommitMessage = "[Gradle Release Plugin] - pre tag commit: "
|
|
tagCommitMessage = "[Gradle Release Plugin] - creating tag: "
|
|
newVersionCommitMessage = "[Gradle Release Plugin] - new version commit: "
|
|
tagTemplate = "1.5.21.1"
|
|
versionPropertyFile = "gradle.properties"
|
|
snapshotSuffix = "-SNAPSHOT"
|
|
buildTasks = ["shadowJar"]
|
|
|
|
git {
|
|
requireBranch.set("main")
|
|
}
|
|
} |