Add artifact with all subprojects inside

This commit is contained in:
Quentin Legot 2023-03-02 14:07:48 +01:00
parent 0228787568
commit 5bb9df3c49
4 changed files with 74 additions and 19 deletions

3
.gitignore vendored
View File

@ -4,7 +4,8 @@ build/
!**/src/main/**/build/ !**/src/main/**/build/
!**/src/test/**/build/ !**/src/test/**/build/
Tasks/run */run
*/logs
### IntelliJ IDEA ### ### IntelliJ IDEA ###
.idea .idea

View File

@ -1,14 +1,34 @@
allprojects { plugins {
group = project.maven_group id 'java'
version = project.maven_version id 'fabric-loom' version '1.1-SNAPSHOT' apply false
} }
subprojects { allprojects {
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'maven-publish' apply plugin: 'maven-publish'
group = project.maven_group
version = project.maven_version
sourceCompatibility = JavaVersion.VERSION_17 sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17
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()
}
publishing { publishing {
publications { publications {
mavenJava(MavenPublication) { mavenJava(MavenPublication) {
@ -26,6 +46,9 @@ subprojects {
} }
} }
} }
}
subprojects {
dependencies { dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-api:${project.junit_version}" testImplementation "org.junit.jupiter:junit-jupiter-api:${project.junit_version}"
@ -41,16 +64,18 @@ subprojects {
useJUnitPlatform() useJUnitPlatform()
} }
repositories {
maven {
name 'altarik-snapshots'
url 'https://repo.altarik.fr/snapshots/'
}
maven {
name 'altarik-releases'
url 'https://repo.altarik.fr/releases/'
} }
mavenCentral() dependencies {
implementation project(':Pagination')
}
jar {
dependsOn subprojects.jar
subprojects.each { project ->
from(project.jar) {
into("META-INF/jars/")
}
} }
} }

View File

@ -1,4 +1,4 @@
org.gradle.jvmargs=-Xmx5G org.gradle.jvmargs=-Xmx4G
junit_version=5.9.0 junit_version=5.9.0

View File

@ -0,0 +1,29 @@
{
"schemaVersion": 1,
"id": "toolbox",
"version": "${version}",
"name": "Altarik Toolbox",
"description": "Altarik Toolbox, for developers",
"authors": [
"Altarik"
],
"contributors": [
"Legot Quentin<legotquentin@gmail.com>"
],
"contact": {
"homepage": "https://altarik.fr"
},
"license": "Altarik @ All-Rights-Reserved ",
"icon": "assets/quests/icon.png",
"environment": "*",
"mixins": [
"Task.mixins.json"
],
"depends": {
"fabricloader": "^0.14.12",
"fabric-api": "*",
"minecraft": "1.19.3",
"java": ">=17"
}
}