Skip to content

Commit

Permalink
Initial upgrade and renames
Browse files Browse the repository at this point in the history
  • Loading branch information
robotgryphon committed Dec 8, 2023
1 parent bf2732d commit 040d7d4
Show file tree
Hide file tree
Showing 252 changed files with 302 additions and 1,095 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ build-out/

src/generated/

forge-main/src/generated/
neoforge-main/src/generated/
88 changes: 44 additions & 44 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
var envVersion: String = System.getenv("CC_VERSION") ?: "9.9.9"
if(envVersion.startsWith("v"))
envVersion = envVersion.trimStart('v');

val mod_id: String by extra
val isRelease: Boolean = (System.getenv("CC_RELEASE") ?: "false").equals("true", true)

plugins {
id("maven-publish")
}

val deps = listOf(
project(":forge-api"),
project(":forge-main")
)

deps.forEach {
project.evaluationDependsOn(it.path)
}

val PACKAGES_URL = System.getenv("GH_PKG_URL") ?: "https://maven.pkg.github.com/compactmods/compactcrafting"
publishing {
publications.register<MavenPublication>("allLibs") {
artifactId = mod_id
groupId = "dev.compactmods"
version = envVersion

this.artifact(project(":forge-api").tasks.named("jar").get())
this.artifact(project(":forge-api").tasks.named("sourcesJar").get())
this.artifact(project(":forge-main").tasks.named("jar").get())
this.artifact(project(":forge-main").tasks.named("jarJar").get())
}

repositories {
// GitHub Packages
maven(PACKAGES_URL) {
name = "GitHubPackages"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
//var envVersion: String = System.getenv("CC_VERSION") ?: "9.9.9"
//if(envVersion.startsWith("v"))
// envVersion = envVersion.trimStart('v');
//
//val mod_id: String by extra
//val isRelease: Boolean = (System.getenv("CC_RELEASE") ?: "false").equals("true", true)
//
//plugins {
// id("maven-publish")
//}
//
//val deps = listOf(
// project(":forge-api"),
// project(":forge-main")
//)
//
//deps.forEach {
// project.evaluationDependsOn(it.path)
//}
//
//val PACKAGES_URL = System.getenv("GH_PKG_URL") ?: "https://maven.pkg.github.com/compactmods/compactcrafting"
//publishing {
// publications.register<MavenPublication>("allLibs") {
// artifactId = mod_id
// groupId = "dev.compactmods"
// version = envVersion
//
// this.artifact(project(":forge-api").tasks.named("jar").get())
// this.artifact(project(":forge-api").tasks.named("sourcesJar").get())
// this.artifact(project(":forge-main").tasks.named("jar").get())
// this.artifact(project(":forge-main").tasks.named("jarJar").get())
// }
//
// repositories {
// // GitHub Packages
// maven(PACKAGES_URL) {
// name = "GitHubPackages"
// credentials {
// username = System.getenv("GITHUB_ACTOR")
// password = System.getenv("GITHUB_TOKEN")
// }
// }
// }
//}
109 changes: 0 additions & 109 deletions forge-api/build.gradle.kts

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 040d7d4

Please sign in to comment.