Skip to content

Commit

Permalink
go!
Browse files Browse the repository at this point in the history
  • Loading branch information
Ecdcaeb authored May 2, 2024
1 parent 0d862f5 commit a236ca2
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
boolean useMirror = use_mirror_url == "true"
apply from: 'gradle/scripts/helpers.gradle'
assertProperty 'mod_version'
assertProperty 'root_package'
assertProperty 'mod_id'
assertProperty 'mod_name'

assertSubProperties 'use_access_transformer', 'access_transformer_locations'
assertSubProperties 'is_coremod', 'coremod_includes_mod', 'coremod_plugin_class_name'
assertSubProperties 'use_asset_mover', 'asset_mover_version'

setDefaultProperty 'mapping_channel', true, 'stable'
setDefaultProperty 'mapping_version', true, '39'

buildscript {
repositories {
if (useMirror) {
if (propertyBool('use_mirror')) {
// clear all proxy settings, this is available for global
System.clearProperty "http.proxyHost"
System.clearProperty "http.proxyPort"
Expand All @@ -27,26 +38,13 @@ buildscript {
}
}

if (useMirror) apply from: "mirror.gradle"
apply from: 'gradle/scripts/helpers.gradle'
if (propertyBool('use_mirror')) apply from: "gradle/scripts/mirror.gradle"

apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'java'

assertProperty 'mod_version'
assertProperty 'root_package'
assertProperty 'mod_id'
assertProperty 'mod_name'

assertSubProperties 'use_access_transformer', 'access_transformer_locations'
assertSubProperties 'is_coremod', 'coremod_includes_mod', 'coremod_plugin_class_name'
assertSubProperties 'use_asset_mover', 'asset_mover_version'

setDefaultProperty 'mapping_channel', true, 'stable'
setDefaultProperty 'mapping_version', true, '39'

version = "1.12.2-${mod_version}"
group = root_package
archivesBaseName = mod_name
Expand Down

0 comments on commit a236ca2

Please sign in to comment.