diff --git a/build.gradle b/build.gradle index 14011fd..2011a23 100644 --- a/build.gradle +++ b/build.gradle @@ -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'] } } } \ No newline at end of file diff --git a/examples/redis-demo/build.gradle b/examples/redis-demo/build.gradle index 13f87f1..065c6e1 100644 --- a/examples/redis-demo/build.gradle +++ b/examples/redis-demo/build.gradle @@ -1,4 +1,3 @@ - plugins { id "groovy" id "war" @@ -8,7 +7,6 @@ plugins { id "org.grails.grails-gsp" } -version = project.projectVersion group = "com.example" assets { minifyJs = true @@ -61,3 +59,9 @@ assets { test { useJUnitPlatform() } + +tasks.withType(GroovyCompile) { + configure(groovyOptions) { + forkOptions.jvmArgs = ['-Xmx1024m'] + } +} \ No newline at end of file diff --git a/plugin/build.gradle b/plugin/build.gradle index 8289648..b921ec1 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -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 @@ -55,6 +53,7 @@ jar { exclude "src/test/projects/**" } +apply plugin: 'org.grails.grails-publish' grailsPublish { githubSlug = 'grails/grails-redis' license { @@ -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'] -} +} \ No newline at end of file