2023-03-02 14:07:48 +01:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'fabric-loom' version '1.1-SNAPSHOT' apply false
|
2022-11-07 00:38:54 +01:00
|
|
|
}
|
|
|
|
|
2023-03-02 14:07:48 +01:00
|
|
|
allprojects {
|
2022-11-07 00:09:52 +01:00
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'maven-publish'
|
2023-03-02 14:07:48 +01:00
|
|
|
|
|
|
|
group = project.maven_group
|
|
|
|
version = project.maven_version
|
|
|
|
|
2022-11-07 00:09:52 +01:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
2023-03-02 14:07:48 +01:00
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
name 'altarik-snapshots'
|
|
|
|
url 'https://repo.altarik.fr/snapshots/'
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name 'altarik-releases'
|
|
|
|
url 'https://repo.altarik.fr/releases/'
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = 'Fabric'
|
|
|
|
url = 'https://maven.fabricmc.net/'
|
|
|
|
}
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
2022-11-07 00:09:52 +01:00
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
2023-03-02 14:07:48 +01:00
|
|
|
from components.java
|
2022-11-07 00:09:52 +01:00
|
|
|
}
|
2023-03-02 14:07:48 +01:00
|
|
|
}
|
2022-11-07 00:09:52 +01:00
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
name 'altarik'
|
2022-11-07 00:38:54 +01:00
|
|
|
url 'https://repo.altarik.fr/'.concat(project.version.endsWith('SNAPSHOT') ? 'snapshots/' : 'releases/')
|
2022-11-07 00:09:52 +01:00
|
|
|
credentials {
|
|
|
|
username = project.repo_username
|
|
|
|
password = project.repo_password
|
|
|
|
}
|
|
|
|
}
|
2022-09-19 23:52:14 +02:00
|
|
|
}
|
|
|
|
}
|
2023-03-02 14:07:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
subprojects {
|
2022-11-07 00:09:52 +01:00
|
|
|
|
2023-02-27 00:13:09 +01:00
|
|
|
dependencies {
|
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:${project.junit_version}"
|
|
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${project.junit_version}"
|
|
|
|
}
|
2023-02-03 12:31:51 +01:00
|
|
|
|
|
|
|
java {
|
|
|
|
withSourcesJar()
|
|
|
|
withJavadocJar()
|
|
|
|
}
|
|
|
|
|
2023-02-27 00:13:09 +01:00
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
2023-02-03 12:31:51 +01:00
|
|
|
|
2023-03-02 14:07:48 +01:00
|
|
|
}
|
2022-11-07 00:09:52 +01:00
|
|
|
|
2023-03-02 14:07:48 +01:00
|
|
|
jar {
|
|
|
|
dependsOn subprojects.jar
|
|
|
|
subprojects.each { project ->
|
|
|
|
from(project.jar) {
|
|
|
|
into("META-INF/jars/")
|
|
|
|
}
|
2022-09-19 23:52:14 +02:00
|
|
|
}
|
|
|
|
}
|