-
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.
Stop using conventions for java/version
- Loading branch information
1 parent
4de8ce7
commit 22cf245
Showing
5 changed files
with
108 additions
and
44 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
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,31 @@ | ||
val isRelease: Boolean = (System.getenv("RELEASE") ?: "false").equals("true", true) | ||
var envVersion: String = System.getenv("VERSION") ?: "9.9.9" | ||
if (envVersion.startsWith("v")) | ||
envVersion = envVersion.trimStart('v') | ||
|
||
plugins { | ||
id("gander-convention") | ||
} | ||
|
||
base { | ||
archivesName = project.name | ||
group = "dev.compactmods.gander" | ||
version = envVersion | ||
} | ||
|
||
val PACKAGES_URL = System.getenv("GH_PKG_URL") ?: "https://maven.pkg.github.com/compactmods/gander" | ||
publishing { | ||
publications.register<MavenPublication>(project.name) { | ||
from(components.getByName("java")) | ||
} | ||
|
||
repositories { | ||
// GitHub Packages | ||
maven(PACKAGES_URL) { | ||
name = "GitHubPackages" | ||
credentials { | ||
username = System.getenv("GITHUB_ACTOR") | ||
password = System.getenv("GITHUB_TOKEN") | ||
} | ||
} | ||
} | ||
} |
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,12 +1,31 @@ | ||
var envVersion: String = System.getenv("VERSION") ?: "9.9.9" | ||
if (envVersion.startsWith("v")) | ||
envVersion = envVersion.trimStart('v') | ||
|
||
plugins { | ||
id("gander-convention") | ||
} | ||
|
||
// simply exists to apply the module convention script | ||
// sets up MDG workspace and includes manifest data from resources dir | ||
// additional setup specific to this module may be applied here | ||
base { | ||
archivesName = project.name | ||
group = "dev.compactmods.gander" | ||
version = envVersion | ||
} | ||
|
||
val PACKAGES_URL = System.getenv("GH_PKG_URL") ?: "https://maven.pkg.github.com/compactmods/gander" | ||
publishing { | ||
publications.register<MavenPublication>(project.name) { | ||
from(components.getByName("java")) | ||
} | ||
|
||
//mixin { | ||
// add(sourceSets[SourceSet.MAIN_SOURCE_SET_NAME], "gander_levels.mixins.json") | ||
// config("gander_levels.mixins.json") | ||
//} | ||
repositories { | ||
// GitHub Packages | ||
maven(PACKAGES_URL) { | ||
name = "GitHubPackages" | ||
credentials { | ||
username = System.getenv("GITHUB_ACTOR") | ||
password = System.getenv("GITHUB_TOKEN") | ||
} | ||
} | ||
} | ||
} |
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,12 +1,31 @@ | ||
var envVersion: String = System.getenv("VERSION") ?: "9.9.9" | ||
if (envVersion.startsWith("v")) | ||
envVersion = envVersion.trimStart('v') | ||
|
||
plugins { | ||
id("gander-convention") | ||
} | ||
|
||
// simply exists to apply the module convention script | ||
// sets up MDG workspace and includes manifest data from resources dir | ||
// additional setup specific to this module may be applied here | ||
base { | ||
archivesName = project.name | ||
group = "dev.compactmods.gander" | ||
version = envVersion | ||
} | ||
|
||
val PACKAGES_URL = System.getenv("GH_PKG_URL") ?: "https://maven.pkg.github.com/compactmods/gander" | ||
publishing { | ||
publications.register<MavenPublication>(project.name) { | ||
from(components.getByName("java")) | ||
} | ||
|
||
//mixin { | ||
// add(sourceSets[SourceSet.MAIN_SOURCE_SET_NAME], "gander_render.mixins.json") | ||
// config("gander_render.mixins.json") | ||
//} | ||
repositories { | ||
// GitHub Packages | ||
maven(PACKAGES_URL) { | ||
name = "GitHubPackages" | ||
credentials { | ||
username = System.getenv("GITHUB_ACTOR") | ||
password = System.getenv("GITHUB_TOKEN") | ||
} | ||
} | ||
} | ||
} |
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,8 +1,36 @@ | ||
var envVersion: String = System.getenv("VERSION") ?: "9.9.9" | ||
if (envVersion.startsWith("v")) | ||
envVersion = envVersion.trimStart('v') | ||
|
||
plugins { | ||
id("gander-convention") | ||
} | ||
|
||
base { | ||
archivesName = project.name | ||
group = "dev.compactmods.gander" | ||
version = envVersion | ||
} | ||
|
||
dependencies { | ||
implementation(project(":core")) | ||
implementation(project(":rendering")) | ||
} | ||
|
||
val PACKAGES_URL = System.getenv("GH_PKG_URL") ?: "https://maven.pkg.github.com/compactmods/gander" | ||
publishing { | ||
publications.register<MavenPublication>(project.name) { | ||
from(components.getByName("java")) | ||
} | ||
|
||
repositories { | ||
// GitHub Packages | ||
maven(PACKAGES_URL) { | ||
name = "GitHubPackages" | ||
credentials { | ||
username = System.getenv("GITHUB_ACTOR") | ||
password = System.getenv("GITHUB_TOKEN") | ||
} | ||
} | ||
} | ||
} |