Skip to content

Commit bbf9b98

Browse files
serenibyssDStrand1ALongStringOfNumbers
committed
Update build script version to 1702244235 (#2282)
Co-authored-by: DStrand1 <[email protected]> Co-authored-by: alongstringofnumbers <[email protected]>
1 parent 195d75e commit bbf9b98

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

build.gradle

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//version: 1701739812
1+
//version: 1702244235
22
/*
33
* DO NOT CHANGE THIS FILE!
44
* Also, you may replace this file at any time if there is an update available.
@@ -79,6 +79,7 @@ propertyDefaultIfUnset("curseForgeRelations", "")
7979
propertyDefaultIfUnsetWithEnvVar("releaseType", "release", "RELEASE_TYPE")
8080
propertyDefaultIfUnset("generateDefaultChangelog", false)
8181
propertyDefaultIfUnset("customMavenPublishUrl", "")
82+
propertyDefaultIfUnset("mavenArtifactGroup", getDefaultArtifactGroup())
8283
propertyDefaultIfUnset("enableModernJavaSyntax", false)
8384
propertyDefaultIfUnset("enableSpotless", false)
8485
propertyDefaultIfUnset("enableJUnit", false)
@@ -984,8 +985,8 @@ if (customMavenPublishUrl) {
984985
}
985986

986987
// providers is not available here, use System for getting env vars
987-
groupId = System.getenv('ARTIFACT_GROUP_ID') ?: project.group
988-
artifactId = System.getenv('ARTIFACT_ID') ?: project.name
988+
groupId = System.getenv('ARTIFACT_GROUP_ID') ?: project.mavenArtifactGroup
989+
artifactId = System.getenv('ARTIFACT_ID') ?: project.modArchivesBaseName
989990
version = System.getenv('RELEASE_VERSION') ?: publishedVersion
990991
}
991992
}
@@ -1130,6 +1131,11 @@ tasks.register('faq') {
11301131

11311132
// Helpers
11321133

1134+
def getDefaultArtifactGroup() {
1135+
def lastIndex = project.modGroup.lastIndexOf('.')
1136+
return lastIndex < 0 ? project.modGroup : project.modGroup.substring(0, lastIndex)
1137+
}
1138+
11331139
def getFile(String relativePath) {
11341140
return new File(projectDir, relativePath)
11351141
}

gradle.properties

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ accessTransformersFile = gregtech_at.cfg
5252
usesMixins = false
5353
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
5454
mixinsPackage =
55+
# Automatically generates a mixin config json if enabled, with the name mixins.modid.json
56+
generateMixinConfig=false
5557
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
5658
# Example value: coreModClass = asm.FMLPlugin + modGroup = com.myname.mymodid -> com.myname.mymodid.asm.FMLPlugin
5759
coreModClass = asm.GregTechLoadingPlugin
@@ -75,6 +77,7 @@ includeWellKnownRepositories = true
7577
# Overrides the above setting to be always true, as these repositories are needed to fetch the mods
7678
includeCommonDevEnvMods = true
7779

80+
7881
# If enabled, you may use 'shadowCompile' for dependencies. They will be integrated in your jar. It is your
7982
# responsibility check the licence and request permission for distribution, if required.
8083
usesShadowedDependencies = false
@@ -120,6 +123,7 @@ curseForgeProjectId =
120123
curseForgeRelations = requiredDependency:codechicken-lib-1-8;incompatible:gregtechce
121124

122125
# This project's release type on CurseForge and/or Modrinth
126+
# Alternatively this can be set with the 'RELEASE_TYPE' environment variable.
123127
# Allowed types: release, beta, alpha
124128
releaseType = beta
125129

@@ -129,6 +133,17 @@ generateDefaultChangelog = false
129133

130134
# Prevent the source code from being published
131135
noPublishedSources = false
136+
# Publish to a custom maven location. Follows a few rules:
137+
# Group ID can be set with the 'ARTIFACT_GROUP_ID' environment variable, default to 'project.group'
138+
# Artifact ID can be set with the 'ARTIFACT_ID' environment variable, default to 'project.name'
139+
# Version can be set with the 'RELEASE_VERSION' environment variable, default to 'modVersion'
140+
# For maven credentials:
141+
# Username is set with the 'MAVEN_USER' environment variable, default to "NONE"
142+
# Password is set with the 'MAVEN_PASSWORD' environment variable, default to "NONE"
143+
customMavenPublishUrl=
144+
# The group for maven artifacts. Defaults to the 'project.modGroup' until the last '.' (if any).
145+
# So 'mymod' becomes 'mymod' and 'com.myname.mymodid' 'becomes com.myname'
146+
mavenArtifactGroup=
132147

133148
# Enable spotless checks
134149
# Enforces code formatting on your source code

0 commit comments

Comments
 (0)