2024-05-11 14:41:25 -04:00
|
|
|
plugins {
|
2024-05-13 15:16:53 -04:00
|
|
|
java
|
2024-05-19 18:24:40 -04:00
|
|
|
`java-library`
|
2024-05-25 12:50:54 -04:00
|
|
|
id("io.freefair.lombok") version "8.+"
|
2024-05-13 15:16:53 -04:00
|
|
|
`maven-publish`
|
2024-06-17 14:35:59 -04:00
|
|
|
id("dev.frogmc.meta-update") version "0.0.1-alpha.7"
|
2024-05-11 14:41:25 -04:00
|
|
|
}
|
|
|
|
|
2024-06-02 17:21:45 -04:00
|
|
|
group = "dev.frogmc"
|
2024-08-28 07:58:05 -04:00
|
|
|
version = "0.0.1-alpha.27"
|
2024-05-11 14:41:25 -04:00
|
|
|
|
|
|
|
repositories {
|
2024-05-13 14:38:57 -04:00
|
|
|
maven {
|
2024-06-16 17:38:56 -04:00
|
|
|
name = "FrogMC Snapshots"
|
2024-06-02 17:21:45 -04:00
|
|
|
url = uri("https://maven.frogmc.dev/snapshots")
|
2024-05-13 14:38:57 -04:00
|
|
|
}
|
|
|
|
maven {
|
2024-06-16 17:38:56 -04:00
|
|
|
name = "FrogMC Releases"
|
2024-06-02 17:21:45 -04:00
|
|
|
url = uri("https://maven.frogmc.dev/releases")
|
2024-05-13 14:38:57 -04:00
|
|
|
}
|
2024-05-11 14:41:25 -04:00
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-06-17 07:25:46 -04:00
|
|
|
implementation(libs.thyroxine)
|
2024-06-13 13:54:37 -04:00
|
|
|
compileOnly("org.apache.logging.log4j:log4j-slf4j2-impl:2.22.1")
|
|
|
|
compileOnly("org.apache.logging.log4j:log4j-api:2.22.1")
|
|
|
|
compileOnly("org.apache.logging.log4j:log4j-core:2.22.1")
|
2024-07-05 08:40:29 -04:00
|
|
|
compileOnly("com.google.code.gson:gson:2.0")
|
|
|
|
compileOnly("com.google.guava:guava:21.0") // Lowest possible version for our code
|
2024-05-19 18:24:40 -04:00
|
|
|
|
2024-07-05 08:40:29 -04:00
|
|
|
api(libs.mixin) {
|
|
|
|
exclude(group = "com.google.code.gson")
|
|
|
|
exclude(group = "com.google.guava")
|
|
|
|
}
|
2024-06-05 14:06:20 -04:00
|
|
|
api(libs.mixinextras)
|
2024-06-13 13:54:37 -04:00
|
|
|
api(libs.nightconfig)
|
2024-05-19 18:24:40 -04:00
|
|
|
api(libs.annotations)
|
2024-05-11 14:41:25 -04:00
|
|
|
}
|
|
|
|
|
2024-05-17 15:08:55 -04:00
|
|
|
java {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
|
|
targetCompatibility = JavaVersion.VERSION_21
|
2024-06-03 17:46:30 -04:00
|
|
|
|
|
|
|
withJavadocJar()
|
|
|
|
withSourcesJar()
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.javadoc {
|
|
|
|
include("**/api/**")
|
2024-05-13 15:16:53 -04:00
|
|
|
}
|
|
|
|
|
2024-05-25 12:50:54 -04:00
|
|
|
tasks.processResources {
|
|
|
|
inputs.property("version", version)
|
|
|
|
|
|
|
|
filesMatching("frog.mod.toml") {
|
|
|
|
expand("version" to version)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-05-13 15:16:53 -04:00
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
create<MavenPublication>("mavenJava") {
|
2024-06-08 04:46:55 -04:00
|
|
|
artifactId = "frogloader"
|
2024-05-13 15:16:53 -04:00
|
|
|
from(components["java"])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven {
|
2024-06-02 10:42:13 -04:00
|
|
|
name = "FrogMCSnapshotsMaven"
|
2024-06-02 17:21:45 -04:00
|
|
|
url = uri("https://maven.frogmc.dev/snapshots")
|
2024-05-13 15:16:53 -04:00
|
|
|
credentials(PasswordCredentials::class)
|
|
|
|
authentication {
|
|
|
|
create<BasicAuthentication>("basic")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
maven {
|
2024-06-02 10:42:13 -04:00
|
|
|
name = "FrogMCReleasesMaven"
|
2024-06-02 17:21:45 -04:00
|
|
|
url = uri("https://maven.frogmc.dev/releases")
|
2024-05-13 15:16:53 -04:00
|
|
|
credentials(PasswordCredentials::class)
|
|
|
|
authentication {
|
|
|
|
create<BasicAuthentication>("basic")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-06-07 21:04:20 -04:00
|
|
|
}
|