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-05-11 14:41:25 -04:00
|
|
|
}
|
|
|
|
|
2024-06-02 17:21:45 -04:00
|
|
|
group = "dev.frogmc"
|
2024-05-13 14:38:57 -04:00
|
|
|
version = "0.0.1-SNAPSHOT"
|
2024-05-11 14:41:25 -04:00
|
|
|
|
|
|
|
repositories {
|
2024-05-13 14:38:57 -04:00
|
|
|
maven {
|
2024-06-02 10:42:13 -04:00
|
|
|
name = "FrogMC Maven/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-02 10:42:13 -04:00
|
|
|
name = "FrogMC Maven/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
|
|
|
maven("https://maven.fabricmc.net/")
|
|
|
|
maven("https://repo.spongepowered.org/maven")
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-06-02 10:42:13 -04:00
|
|
|
implementation(libs.thyroxine){
|
2024-05-26 18:36:30 -04:00
|
|
|
isTransitive = false
|
|
|
|
}
|
2024-05-20 09:30:58 -04:00
|
|
|
compileOnly("org.apache.logging.log4j:log4j-slf4j2-impl:3.0.0-beta2")
|
|
|
|
compileOnly("org.apache.logging.log4j:log4j-api:3.0.0-beta2")
|
|
|
|
compileOnly("org.apache.logging.log4j:log4j-core:3.0.0-beta2")
|
2024-05-19 18:24:40 -04:00
|
|
|
|
|
|
|
api(libs.mixin)
|
2024-06-05 14:06:20 -04:00
|
|
|
api(libs.mixinextras)
|
2024-05-26 18:36:30 -04:00
|
|
|
implementation(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
|
|
|
}
|