Skip to content

Commit

Permalink
Update grace-bom
Browse files Browse the repository at this point in the history
remove unmanaged Grails plugins and profiles
  • Loading branch information
rainboyan committed Jan 13, 2024
1 parent 9b1ba7d commit c07904a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 67 deletions.
48 changes: 5 additions & 43 deletions grace-bom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ apply plugin: 'maven-publish'

def toml = new groovy.toml.TomlSlurper()
def grails = toml.parse(rootProject.file('gradle/grails.versions.toml'))
def grace = toml.parse(rootProject.file('gradle/grace.versions.toml'))
def libs = toml.parse(rootProject.file('gradle/libs.versions.toml'))

def tokens = [:]
Expand All @@ -29,7 +28,8 @@ publishing {
def mkp = delegate

mkp.properties {
for (dep in grace.plugins) {

for (dep in grails.plugins) {
String version = dep.value
tokens["grace-plugin-${dep.key}.version"] = version
if (!isBuildSnapshot && version.endsWith("-SNAPSHOT")) {
Expand All @@ -38,7 +38,7 @@ publishing {
mkp."grace-plugin-${dep.key}.version"(version)
}

for (dep in grace.profiles) {
for (dep in grails.profiles) {
String version = dep.value
tokens["grace-profile-${dep.key}.version"] = version
if (!isBuildSnapshot && version.endsWith("-SNAPSHOT")) {
Expand All @@ -47,24 +47,6 @@ publishing {
mkp."grace-profile-${dep.key}.version"(version)
}

for (dep in grails.plugins) {
String version = dep.value
tokens["grails-plugin-${dep.key}.version"] = version
if (!isBuildSnapshot && version.endsWith("-SNAPSHOT")) {
throw new RuntimeException("Cannot have a snapshot dependency on a plugin [$dep.key] for a release!")
}
mkp."grails-plugin-${dep.key}.version"(version)
}

for (dep in grails.profiles) {
String version = dep.value
tokens["grails-profile-${dep.key}.version"] = version
if (!isBuildSnapshot && version.endsWith("-SNAPSHOT")) {
throw new RuntimeException("Cannot have a snapshot dependency on a profile [$dep.key] for a release!")
}
mkp."grails-profile-${dep.key}.version"(version)
}

for (ver in libraryVersions) {
String version = libs.versions[ver]
tokens["${ver}.version"] = version
Expand Down Expand Up @@ -107,7 +89,7 @@ publishing {
}
}

for (plugin in grace.plugins) {
for (plugin in grails.plugins) {
String artifactId = plugin.key
String version = "\${grace-plugin-${plugin.key}.version}"
mkp.dependency {
Expand All @@ -118,34 +100,14 @@ publishing {
}
}

for (profile in grace.profiles) {
for (profile in grails.profiles) {
mkp.dependency {
mkp.groupId 'org.graceframework.profiles'
mkp.artifactId profile.key
String version = profile.value
mkp.version("\${grace-profile-${profile.key}.version}")
}
}

for (plugin in grails.plugins) {
String artifactId = plugin.key
String version = "\${grails-plugin-${plugin.key}.version}"
mkp.dependency {
mkp.groupId 'org.grails.plugins'
mkp.artifactId artifactId
String versionValue = plugin.value
mkp.version version
}
}

for (profile in grails.profiles) {
mkp.dependency {
mkp.groupId 'org.grails.profiles'
mkp.artifactId profile.key
String version = profile.value
mkp.version("\${grails-profile-${profile.key}.version}")
}
}
}
}
}
Expand Down
16 changes: 0 additions & 16 deletions gradle/grace.versions.toml

This file was deleted.

21 changes: 13 additions & 8 deletions gradle/grails.versions.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
[plugins]
mongodb = "7.2.1"
neo4j = "7.2.1"
rxjava = "1.1.1"
rxjava2 = "2.0.0"
cache = "5.0.0"
database-migration = "5.0.0"
geb = "5.0.0"
fields = "5.0.0"
hibernate5 = "2022.0.0"
scaffolding = "5.0.0"

[profiles]
angular = "8.0.2"
react = "5.0.2"
rest-api-plugin = "5.0.1"
vue = "5.0.2"
base = "2022.0.0-SNAPSHOT"
plugin = "2022.0.0-SNAPSHOT"
profile = "2022.0.0-SNAPSHOT"
rest-api = "2022.0.0-SNAPSHOT"
web = "2022.0.0-SNAPSHOT"
web-bootstrap = "2022.0.0-SNAPSHOT"
web-plugin = "2022.0.0-SNAPSHOT"

0 comments on commit c07904a

Please sign in to comment.