generated from LabyMod/addon-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from Global-Tags/chore/labyProcessingStructure
Update gradle project structure
- Loading branch information
Showing
7 changed files
with
35 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,11 @@ | ||
version = "0.1.0" | ||
|
||
plugins { | ||
id("java-library") | ||
} | ||
import net.labymod.labygradle.common.extension.LabyModAnnotationProcessorExtension.ReferenceType | ||
|
||
dependencies { | ||
labyProcessor() | ||
labyApi("api") | ||
maven(mavenCentral(), "com.rappytv.globaltags:GlobalTagsJava:1.0.10") | ||
|
||
// If you want to use external libraries, you can do that here. | ||
// The dependencies that are specified here are loaded into your project but will also | ||
// automatically be downloaded by labymod, but only if the repository is public. | ||
// If it is private, you have to add and compile the dependency manually. | ||
// You have to specify the repository, there are getters for maven central and sonatype, every | ||
// other repository has to be specified with their url. Example: | ||
// maven(mavenCentral(), "org.apache.httpcomponents:httpclient:4.5.13") | ||
} | ||
|
||
labyModProcessor { | ||
referenceType = net.labymod.gradle.core.processor.ReferenceType.INTERFACE | ||
addonMavenDependency("com.rappytv.globaltags:GlobalTagsJava:1.0.10") | ||
} | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_21 | ||
targetCompatibility = JavaVersion.VERSION_21 | ||
labyModAnnotationProcessor { | ||
referenceType = ReferenceType.INTERFACE | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,11 @@ | ||
version = "0.1.0" | ||
|
||
plugins { | ||
id("java-library") | ||
} | ||
import net.labymod.labygradle.common.extension.LabyModAnnotationProcessorExtension.ReferenceType | ||
|
||
dependencies { | ||
labyProcessor() | ||
api(project(":api")) | ||
maven(mavenCentral(), "com.rappytv.globaltags:GlobalTagsJava:1.0.10") | ||
|
||
// If you want to use external libraries, you can do that here. | ||
// The dependencies that are specified here are loaded into your project but will also | ||
// automatically be downloaded by labymod, but only if the repository is public. | ||
// If it is private, you have to add and compile the dependency manually. | ||
// You have to specify the repository, there are getters for maven central and sonatype, every | ||
// other repository has to be specified with their url. Example: | ||
// maven(mavenCentral(), "org.apache.httpcomponents:httpclient:4.5.13") | ||
} | ||
|
||
labyModProcessor { | ||
referenceType = net.labymod.gradle.core.processor.ReferenceType.DEFAULT | ||
addonMavenDependency("com.rappytv.globaltags:GlobalTagsJava:1.0.10") | ||
} | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_21 | ||
targetCompatibility = JavaVersion.VERSION_21 | ||
labyModAnnotationProcessor { | ||
referenceType = ReferenceType.DEFAULT | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lg_versioned_module=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
org.gradle.jvmargs=-Xmx4096m | ||
org.gradle.jvmargs=-Xmx4096m | ||
net.labymod.minecraft-versions=1.8.9;1.12.2;1.16.5;1.17.1;1.18.2;1.19.2;1.19.3;1.19.4;1.20.1;1.20.2;1.20.4;1.20.5;1.20.6;1.21;1.21.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
rootProject.name = "GlobalTags" | ||
|
||
pluginManagement { | ||
val labyGradlePluginVersion = "0.4.5" | ||
plugins { | ||
id("net.labymod.gradle") version (labyGradlePluginVersion) | ||
} | ||
val labyGradlePluginVersion = "0.5.3" | ||
|
||
buildscript { | ||
repositories { | ||
maven("https://dist.labymod.net/api/v1/maven/release/") | ||
maven("https://repo.spongepowered.org/repository/maven-public") | ||
maven("https://maven.neoforged.net/releases/") | ||
maven("https://maven.fabricmc.net/") | ||
gradlePluginPortal() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
classpath("net.labymod.gradle", "addon", labyGradlePluginVersion) | ||
classpath("net.labymod.gradle", "common", labyGradlePluginVersion) | ||
} | ||
} | ||
} | ||
|
||
plugins.apply("net.labymod.gradle") | ||
plugins.apply("net.labymod.labygradle.settings") | ||
|
||
include(":api") | ||
include(":core") |