2022-09-26 12:50:30 +00:00
|
|
|
plugins {
|
|
|
|
|
id("java")
|
|
|
|
|
id("com.github.johnrengelman.shadow") version "7.1.0"
|
2022-09-27 08:14:12 +00:00
|
|
|
id("maven-publish")
|
2022-09-26 12:50:30 +00:00
|
|
|
}
|
|
|
|
|
|
2022-10-19 15:30:58 +00:00
|
|
|
allprojects {
|
2022-10-19 17:22:56 +00:00
|
|
|
group = "com.alttd.datalock"
|
2022-12-05 20:36:24 +00:00
|
|
|
version = "1.1.0-SNAPSHOT"
|
2022-10-19 15:30:58 +00:00
|
|
|
description = "Altitude DataLock Library."
|
|
|
|
|
}
|
2022-09-26 12:50:30 +00:00
|
|
|
|
2022-10-19 15:30:58 +00:00
|
|
|
subprojects {
|
|
|
|
|
apply<JavaLibraryPlugin>()
|
|
|
|
|
apply(plugin = "maven-publish")
|
2022-09-26 12:50:30 +00:00
|
|
|
|
2022-10-19 15:30:58 +00:00
|
|
|
java {
|
|
|
|
|
toolchain {
|
|
|
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
|
|
|
}
|
2022-09-26 12:50:30 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks {
|
2022-10-19 15:30:58 +00:00
|
|
|
jar {
|
2022-12-05 20:36:24 +00:00
|
|
|
enabled = true
|
2022-09-26 12:50:30 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-27 08:14:12 +00:00
|
|
|
publishing {
|
|
|
|
|
publications {
|
|
|
|
|
create<MavenPublication>("mavenJava") {
|
|
|
|
|
from(components["java"])
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
repositories{
|
|
|
|
|
maven {
|
|
|
|
|
name = "maven"
|
|
|
|
|
url = uri("https://repo.destro.xyz/snapshots")
|
|
|
|
|
credentials(PasswordCredentials::class)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-26 12:50:30 +00:00
|
|
|
dependencies {
|
2022-09-27 08:12:37 +00:00
|
|
|
compileOnly("com.alttd:Galaxy-API:1.19.2-R0.1-SNAPSHOT")
|
2022-10-19 15:30:58 +00:00
|
|
|
}
|