mirror of
https://github.com/ColdeZhang/Dominion.git
synced 2024-12-19 18:58:56 +08:00
43 lines
949 B
Plaintext
43 lines
949 B
Plaintext
plugins {
|
|
id("java")
|
|
id("maven-publish")
|
|
}
|
|
|
|
java {
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
|
}
|
|
|
|
// utf-8
|
|
tasks.withType<JavaCompile> {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT")
|
|
}
|
|
|
|
tasks.jar {
|
|
archiveClassifier.set("sources")
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("mavenJava") {
|
|
groupId = "cn.lunadeer"
|
|
artifactId = "DominionAPI"
|
|
version = "1.5-SNAPSHOT"
|
|
from(components["java"])
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
url = uri("https://ssl.lunadeer.cn:14454/repository/maven-snapshots/")
|
|
credentials {
|
|
// from m2 settings.xml
|
|
username = project.findProperty("nexusUsername")?.toString()
|
|
password = project.findProperty("nexusPassword")?.toString()
|
|
}
|
|
}
|
|
}
|
|
}
|