Skip to content

Commit

Permalink
Switch to using convention plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Feb 2, 2024
1 parent 5d235d8 commit 40e5f6f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 62 deletions.
3 changes: 1 addition & 2 deletions buildSrc/src/main/groovy/convention.shared.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'java-library'
id 'maven-publish'
id 'idea'
id 'dev.lukebemish.conventions.project'
}

version = rootProject.version
Expand Down Expand Up @@ -36,8 +37,6 @@ configurations {
}

dependencies {
compileOnly libs.jetbrains.annotations
compileOnly libs.jspecify
rootProjectLicense project(path: ':', configuration: 'license')
}

Expand Down
3 changes: 0 additions & 3 deletions fabriquilt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ dependencies {
minecraft libs.minecraft
modImplementation libs.fabric.loader
modImplementation libs.fabric.api

compileOnly libs.autoservice
annotationProcessor libs.autoservice
}

loom {
Expand Down
12 changes: 0 additions & 12 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,10 @@ fabric_api = "0.92.1+1.20.4"

mdg_plugin = "1.4.3"
mdg_dsl = "1.5.1"
autoservice = "1.1.1"

architectury_loom = "1.4.373"
quilt_licenser = "2.0.1"

jetbrains_annotations = "24.0.1"
jspecify = "0.3.0"

managedversioning = "1.2.6"

[libraries]
minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" }

Expand All @@ -28,14 +22,8 @@ fabric_api = { module = "net.fabricmc.fabric-api:fabric-api", version.ref = "fab

neoforge = { module = "net.neoforged:neoforge", version.ref = "neoforge" }

jetbrains_annotations = { module = "org.jetbrains:annotations", version.ref = "jetbrains_annotations" }
jspecify = { module = "org.jspecify:jspecify", version.ref = "jspecify" }

autoservice = { module = "com.google.auto.service:auto-service", version.ref = "autoservice" }

[plugins]

managedversioning = { id = "dev.lukebemish.managedversioning", version.ref = "managedversioning" }
mdg_plugin = { id = "org.groovymc.modsdotgroovy", version.ref = "mdg_plugin" }
quilt_licenser = { id = "org.quiltmc.gradle.licenser", version.ref = "quilt_licenser" }
architectury_loom = { id = "dev.architectury.loom", version.ref = "architectury_loom" }
3 changes: 0 additions & 3 deletions neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ dependencies {
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-${libs.versions.parchment.minecraft.get()}:${libs.versions.parchment.mappings.get()}@zip")
}

compileOnly libs.autoservice
annotationProcessor libs.autoservice
}

loom {
Expand Down
43 changes: 1 addition & 42 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,49 +30,8 @@ pluginManagement {
}

plugins {
id 'com.gradle.enterprise' version '3.16.1'
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0'
}

gradleEnterprise {
if (System.getenv('CI') != null) {
buildScan {
publishAlways()
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
id 'dev.lukebemish.conventions.settings' version '0.1.3'
}

rootProject.name = 'defaultresources'
include("common", "neoforge", "fabriquilt")

buildCache {
if (providers.gradleProperty('buildCacheUrl').orNull) {
remote(HttpBuildCache) {
url = providers.gradleProperty('buildCacheUrl').orNull
credentials {
username = providers.gradleProperty('buildCacheUser').orNull
password = providers.gradleProperty('buildCachePassword').orNull
}
if (providers.gradleProperty('buildCachePush').orNull) {
push = true
} else {
push = false
}
}
} else if (System.getenv('BUILD_CACHE_URL')) {
remote(HttpBuildCache) {
url = System.getenv('BUILD_CACHE_URL')
credentials {
username = System.getenv('BUILD_CACHE_USER')
password = System.getenv('BUILD_CACHE_PASSWORD')
}
if (System.getenv('BUILD_CACHE_PUSH') || System.getenv('CI')) {
push = true
} else {
push = false
}
}
}
}

0 comments on commit 40e5f6f

Please sign in to comment.