mirror of
https://github.com/MiniDay/HamsterCurrency-Parent.git
synced 2025-08-22 20:25:30 +08:00
88 lines
2.3 KiB
Groovy
88 lines
2.3 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'maven-publish'
|
|
}
|
|
|
|
group 'cn.hamster3'
|
|
version '2.0.9-SNAPSHOT'
|
|
|
|
repositories {
|
|
maven {
|
|
url = "https://maven.airgame.net/repository/maven-public/"
|
|
}
|
|
maven {
|
|
url = "https://repo.codemc.org/repository/maven-public"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly "org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT"
|
|
// https://mvnrepository.com/artifact/org.jetbrains/annotations
|
|
compileOnly group: 'org.jetbrains', name: 'annotations', version: '22.0.0'
|
|
compileOnly "cn.hamster3:HamsterService-Bukkit:2.6.2-SNAPSHOT"
|
|
compileOnly "cn.hamster3:HamsterAPI:2.4.7-SNAPSHOT"
|
|
compileOnly "com.github.MilkBowl:VaultAPI:1.7"
|
|
compileOnly "org.black_ixx:PlayerPoints:2.1.3"
|
|
compileOnly "me.clip:placeholderapi:2.10.9"
|
|
}
|
|
|
|
processResources {
|
|
filesMatching("plugin.yml") {
|
|
expand "version": project.version
|
|
}
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
withJavadocJar()
|
|
withSourcesJar()
|
|
}
|
|
|
|
jar {
|
|
archivesBaseName = "HamsterCurrency"
|
|
destinationDir(rootProject.buildDir)
|
|
}
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = 'UTF-8'
|
|
options.compilerArgs << "-Xlint:unchecked"
|
|
}
|
|
|
|
javadoc {
|
|
options.quiet()
|
|
options.encoding = 'UTF-8'
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
options.links = [
|
|
"https://javadoc.io/doc/org.jetbrains/annotations/21.0.1",
|
|
'https://javadoc.io/doc/com.google.code.gson/gson/2.8.0',
|
|
'https://ci.dmulloy2.net/job/ProtocolLib/javadoc',
|
|
'http://milkbowl.github.io/VaultAPI',
|
|
'https://bukkit.windit.net/javadoc'
|
|
]
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
mavenJava(MavenPublication) {
|
|
artifactId = "HamsterCurrency"
|
|
artifact jar
|
|
artifact sourcesJar
|
|
artifact javadocJar
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
def releasesRepoUrl = 'https://maven.airgame.net/repository/maven-releases/'
|
|
def snapshotsRepoUrl = 'https://maven.airgame.net/repository/maven-snapshots/'
|
|
|
|
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
|
|
|
credentials {
|
|
username maven_username
|
|
password maven_password
|
|
}
|
|
}
|
|
}
|
|
} |