Add artifact with all subprojects inside
This commit is contained in:
parent
0228787568
commit
5bb9df3c49
3
.gitignore
vendored
3
.gitignore
vendored
@ -4,7 +4,8 @@ build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
Tasks/run
|
||||
*/run
|
||||
*/logs
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea
|
||||
|
55
build.gradle
55
build.gradle
@ -1,18 +1,38 @@
|
||||
allprojects {
|
||||
group = project.maven_group
|
||||
version = project.maven_version
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'fabric-loom' version '1.1-SNAPSHOT' apply false
|
||||
}
|
||||
|
||||
subprojects {
|
||||
allprojects {
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'maven-publish'
|
||||
|
||||
group = project.maven_group
|
||||
version = project.maven_version
|
||||
|
||||
sourceCompatibility = 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 {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
from components.java
|
||||
from components.java
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
@ -26,6 +46,9 @@ subprojects {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
subprojects {
|
||||
|
||||
dependencies {
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-api:${project.junit_version}"
|
||||
@ -41,16 +64,18 @@ subprojects {
|
||||
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/")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
org.gradle.jvmargs=-Xmx5G
|
||||
org.gradle.jvmargs=-Xmx4G
|
||||
|
||||
|
||||
junit_version=5.9.0
|
||||
|
29
src/main/resources/fabric.mod.json
Normal file
29
src/main/resources/fabric.mod.json
Normal 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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user