Skip to content

Commit

Permalink
[skip ci] - fix release publish
Browse files Browse the repository at this point in the history
  • Loading branch information
jdaugherty committed Dec 23, 2024
1 parent b0e9a27 commit ba49917
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
28 changes: 20 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
if(!project.projectVersion.endsWith('-SNAPSHOT')) {
apply plugin: "io.github.gradle-nexus.publish-plugin"
}

allprojects {

repositories {
mavenCentral()
maven { url "https://repo.grails.org/grails/core" }
}
}

version = project.projectVersion

subprojects { project ->
project.version = project.projectVersion

tasks.withType(GroovyCompile) {
configure(groovyOptions) {
forkOptions.jvmArgs = ['-Xmx1024m']
if(project.name.endsWith('grails-redis')) {
apply plugin: 'org.grails.grails-publish'
grailsPublish {
githubSlug = 'grails/grails-redis'
license {
name = 'Apache-2.0'
}
title = 'Grails Redis Plugin'
desc = 'This Plugin provides access to Redis and various utilities (service, annotations, etc) for caching.'
developers = ['tednaleid': 'Ted Naleid', 'burtbeckwith': 'Burt Beckwith', 'christianoestreich': 'Christian Oestreich',
'briancoles': 'Brian Coles', 'michaelcameron': 'Michael Cameron', 'johnengelman': 'John Engelman',
'davidseiler': 'David Seiler', 'jordonsaardchit': 'Jordon Saardchit', 'florianlangenhahn': 'Florian Langenhahn',
'germansancho': 'German Sancho', 'johnmulhern': 'John Mulhern', 'shaunjurgemeyer': 'Shaun Jurgemeyer',
'puneetbehl': 'Puneet Behl']
}
}
}
8 changes: 6 additions & 2 deletions examples/redis-demo/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

plugins {
id "groovy"
id "war"
Expand All @@ -8,7 +7,6 @@ plugins {
id "org.grails.grails-gsp"
}

version = project.projectVersion
group = "com.example"
assets {
minifyJs = true
Expand Down Expand Up @@ -61,3 +59,9 @@ assets {
test {
useJUnitPlatform()
}

tasks.withType(GroovyCompile) {
configure(groovyOptions) {
forkOptions.jvmArgs = ['-Xmx1024m']
}
}
5 changes: 2 additions & 3 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ plugins {
id 'idea'
id 'org.grails.grails-plugin'
id "org.grails.grails-gsp"
id 'org.grails.grails-publish'
}

version = project.projectVersion
group = 'org.grails.plugins'

compileJava.options.release = 17
Expand Down Expand Up @@ -55,6 +53,7 @@ jar {
exclude "src/test/projects/**"
}

apply plugin: 'org.grails.grails-publish'
grailsPublish {
githubSlug = 'grails/grails-redis'
license {
Expand All @@ -67,4 +66,4 @@ grailsPublish {
'davidseiler': 'David Seiler', 'jordonsaardchit': 'Jordon Saardchit', 'florianlangenhahn': 'Florian Langenhahn',
'germansancho': 'German Sancho', 'johnmulhern': 'John Mulhern', 'shaunjurgemeyer': 'Shaun Jurgemeyer',
'puneetbehl': 'Puneet Behl']
}
}

0 comments on commit ba49917

Please sign in to comment.