-
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 #4 from KessokuTeaTime/new-script/1.21
rework gradle script
- Loading branch information
Showing
29 changed files
with
239 additions
and
709 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,14 +1,4 @@ | ||
group = "band.kessoku.lib.base" | ||
version = libs.versions.mod.get() + "+common." + libs.versions.minecraft.get() | ||
|
||
base { | ||
archivesName = rootProject.name + "-base" | ||
} | ||
apply from: rootProject.file("gradle/scripts/kessokulib-common.gradle") | ||
|
||
architectury { | ||
common(["fabric", "neoforge"]) | ||
} | ||
|
||
dependencies { | ||
modImplementation libs.fabric.loader | ||
} | ||
group = "band.kessoku.lib.base" | ||
base.archivesName = rootProject.name + "-base" |
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,53 +1,9 @@ | ||
plugins { | ||
id 'com.github.johnrengelman.shadow' | ||
} | ||
apply from: rootProject.file("gradle/scripts/kessokulib-fabric.gradle") | ||
|
||
group = "band.kessoku.lib.base" | ||
version = libs.versions.mod.get() + "+fabric." + libs.versions.minecraft.get() | ||
|
||
base { | ||
archivesName = rootProject.name + "-base" | ||
} | ||
|
||
architectury { | ||
platformSetupLoomIde() | ||
fabric() | ||
} | ||
|
||
configurations { | ||
common { | ||
canBeResolved = true | ||
canBeConsumed = false | ||
} | ||
compileClasspath.extendsFrom common | ||
runtimeClasspath.extendsFrom common | ||
developmentFabric.extendsFrom common | ||
shadowBundle { | ||
canBeResolved = true | ||
canBeConsumed = false | ||
} | ||
} | ||
base.archivesName = rootProject.name + "-base" | ||
|
||
dependencies { | ||
modImplementation libs.fabric.loader | ||
modImplementation libs.fabric.api | ||
common(project(path: ':base-common', configuration: 'namedElements')) { transitive false } | ||
shadowBundle project(path: ':base-common', configuration: 'transformProductionFabric') | ||
} | ||
|
||
processResources { | ||
inputs.property 'version', project.version | ||
|
||
filesMatching('fabric.mod.json') { | ||
expand version: project.version | ||
} | ||
} | ||
|
||
shadowJar { | ||
configurations = [project.configurations.shadowBundle] | ||
archiveClassifier = 'dev-shadow' | ||
} | ||
|
||
remapJar { | ||
inputFile.set shadowJar.archiveFile | ||
} |
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,56 +1,9 @@ | ||
plugins { | ||
id 'com.github.johnrengelman.shadow' | ||
} | ||
|
||
base { | ||
archivesName = rootProject.name + "-base" | ||
} | ||
apply from: rootProject.file("gradle/scripts/kessokulib-neo.gradle") | ||
|
||
group = "band.kessoku.lib.base" | ||
version = libs.versions.mod.get() + "+neoforge." + libs.versions.minecraft.get() | ||
|
||
architectury { | ||
platformSetupLoomIde() | ||
neoForge() | ||
} | ||
|
||
repositories { | ||
maven { url "https://maven.neoforged.net/releases/" } | ||
} | ||
|
||
configurations { | ||
common { | ||
canBeResolved = true | ||
canBeConsumed = false | ||
} | ||
compileClasspath.extendsFrom common | ||
runtimeClasspath.extendsFrom common | ||
developmentNeoForge.extendsFrom common | ||
shadowBundle { | ||
canBeResolved = true | ||
canBeConsumed = false | ||
} | ||
} | ||
base.archivesName = rootProject.name + "-base" | ||
|
||
dependencies { | ||
neoForge libs.neo | ||
common(project(path: ':base-common', configuration: 'namedElements')) { transitive false } | ||
shadowBundle project(path: ':base-common', configuration: 'transformProductionNeoForge') | ||
} | ||
|
||
processResources { | ||
inputs.property 'version', project.version | ||
|
||
filesMatching('META-INF/neoforge.mods.toml') { | ||
expand version: project.version | ||
} | ||
} | ||
|
||
shadowJar { | ||
configurations = [project.configurations.shadowBundle] | ||
archiveClassifier = 'dev-shadow' | ||
} | ||
|
||
remapJar { | ||
inputFile.set shadowJar.archiveFile | ||
} |
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,16 +1,9 @@ | ||
group = "band.kessoku.lib.command" | ||
version = libs.versions.mod.get() + "+common." + libs.versions.minecraft.get() | ||
|
||
base { | ||
archivesName = rootProject.name + "-command_api" | ||
} | ||
apply from: rootProject.file("gradle/scripts/kessokulib-common.gradle") | ||
|
||
architectury { | ||
common(["fabric", "neoforge"]) | ||
} | ||
group = "band.kessoku.lib.command" | ||
base.archivesName = rootProject.name + "-command" | ||
|
||
dependencies { | ||
modImplementation libs.fabric.loader | ||
implementation(project(":base-common")) | ||
implementation(project(":event-base-common")) | ||
moduleImplementation(project(":base-common")) | ||
moduleImplementation(project(":event-base-common")) | ||
} |
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,56 +1,11 @@ | ||
plugins { | ||
id 'com.github.johnrengelman.shadow' | ||
} | ||
apply from: rootProject.file("gradle/scripts/kessokulib-fabric.gradle") | ||
|
||
group = "band.kessoku.lib.command" | ||
version = libs.versions.mod.get() + "+fabric." + libs.versions.minecraft.get() | ||
|
||
base { | ||
archivesName = rootProject.name + "-command_api" | ||
} | ||
|
||
architectury { | ||
platformSetupLoomIde() | ||
fabric() | ||
} | ||
|
||
configurations { | ||
common { | ||
canBeResolved = true | ||
canBeConsumed = false | ||
} | ||
compileClasspath.extendsFrom common | ||
runtimeClasspath.extendsFrom common | ||
developmentFabric.extendsFrom common | ||
shadowBundle { | ||
canBeResolved = true | ||
canBeConsumed = false | ||
} | ||
} | ||
base.archivesName = rootProject.name + "-command" | ||
|
||
dependencies { | ||
modImplementation libs.fabric.loader | ||
modImplementation libs.fabric.api | ||
|
||
implementation(project(":event-base-common")) | ||
moduleImplementation(project(":event-base-common")) | ||
|
||
common(project(path: ':command-common', configuration: 'namedElements')) { transitive false } | ||
shadowBundle project(path: ':command-common', configuration: 'transformProductionFabric') | ||
} | ||
|
||
processResources { | ||
inputs.property 'version', project.version | ||
|
||
filesMatching('fabric.mod.json') { | ||
expand version: project.version | ||
} | ||
} | ||
|
||
shadowJar { | ||
configurations = [project.configurations.shadowBundle] | ||
archiveClassifier = 'dev-shadow' | ||
} | ||
|
||
remapJar { | ||
input.set shadowJar.archiveFile | ||
} |
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,60 +1,12 @@ | ||
plugins { | ||
id 'com.github.johnrengelman.shadow' | ||
} | ||
apply from: rootProject.file("gradle/scripts/kessokulib-neo.gradle") | ||
|
||
group = "band.kessoku.lib.command" | ||
version = libs.versions.mod.get() + "+neoforge." + libs.versions.minecraft.get() | ||
|
||
base { | ||
archivesName = rootProject.name + "-command_api" | ||
} | ||
|
||
architectury { | ||
platformSetupLoomIde() | ||
neoForge() | ||
} | ||
|
||
repositories { | ||
maven { url "https://maven.neoforged.net/releases/" } | ||
} | ||
|
||
configurations { | ||
common { | ||
canBeResolved = true | ||
canBeConsumed = false | ||
} | ||
compileClasspath.extendsFrom common | ||
runtimeClasspath.extendsFrom common | ||
developmentNeoForge.extendsFrom common | ||
shadowBundle { | ||
canBeResolved = true | ||
canBeConsumed = false | ||
} | ||
} | ||
base.archivesName = rootProject.name + "-command" | ||
|
||
dependencies { | ||
neoForge libs.neo | ||
|
||
implementation(project(":event-base-common")) | ||
implementation(project(":event-base-neo")) | ||
moduleImplementation(project(":event-base-common")) | ||
moduleImplementation(project(":event-base-neo")) | ||
|
||
common(project(path: ':command-common', configuration: 'namedElements')) { transitive false } | ||
shadowBundle project(path: ':command-common', configuration: 'transformProductionNeoForge') | ||
} | ||
|
||
processResources { | ||
inputs.property 'version', project.version | ||
|
||
filesMatching('META-INF/neoforge.mods.toml') { | ||
expand version: project.version | ||
} | ||
} | ||
|
||
shadowJar { | ||
configurations = [project.configurations.shadowBundle] | ||
archiveClassifier = 'dev-shadow' | ||
} | ||
|
||
remapJar { | ||
input.set shadowJar.archiveFile | ||
} |
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,15 +1,8 @@ | ||
group = "band.kessoku.lib.event" | ||
version = libs.versions.mod.get() + "+common." + libs.versions.minecraft.get() | ||
|
||
base { | ||
archivesName = rootProject.name + "-event-base" | ||
} | ||
apply from: rootProject.file("gradle/scripts/kessokulib-common.gradle") | ||
|
||
architectury { | ||
common(["fabric", "neoforge"]) | ||
} | ||
group = "band.kessoku.lib.event" | ||
base.archivesName = rootProject.name + "-event-base" | ||
|
||
dependencies { | ||
modImplementation libs.fabric.loader | ||
implementation(project(":base-common")) | ||
moduleImplementation(project(":base-common")) | ||
} |
Oops, something went wrong.