Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prep for moving to grails-core #183

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
import io.github.gradlenexus.publishplugin.InitializeNexusStagingRepository

buildscript {
repositories {
gradlePluginPortal()
mavenCentral()
maven { url = 'https://repo.grails.org/grails/core' }
}
dependencies {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath "org.grails:grails-gradle-plugin:${grailsGradlePluginVersion}"
classpath "org.grails:grails-docs:${grailsVersion}"
}
}

plugins {
id 'groovy'
id 'io.github.gradle-nexus.publish-plugin'
}

apply plugin: 'io.github.gradle-nexus.publish-plugin'

version = projectVersion
ext.set('grailsVersion', libs.versions.grails.get())
ext.set('isSnapshot', projectVersion.endsWith('-SNAPSHOT'))
ext.set('isReleaseVersion', !isSnapshot)

Expand Down Expand Up @@ -71,11 +84,6 @@ subprojects {
}
}
}

dependencies {
implementation platform(libs.grails.bom)
}

tasks.withType(Test).configureEach {
useJUnitPlatform()
testLogging {
Expand Down
38 changes: 0 additions & 38 deletions buildSrc/build.gradle

This file was deleted.

11 changes: 0 additions & 11 deletions buildSrc/settings.gradle

This file was deleted.

9 changes: 5 additions & 4 deletions docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
configurations.register('groovydocRuntimeOnly')

dependencies {
implementation platform("org.grails:grails-bom:${grailsVersion}")
jdaugherty marked this conversation as resolved.
Show resolved Hide resolved
groovydocRuntimeOnly localGroovy()
}

Expand Down Expand Up @@ -56,10 +57,10 @@ tasks.register('generateGuide', PublishGuide) {
'sourcedir': rootProject.layout.projectDirectory.asFile,
'javaee' : 'https://docs.oracle.com/javaee/7/api/',
'javase' : 'https://docs.oracle.com/en/java/javase/11/docs/api/',
'groovyapi': "https://docs.groovy-lang.org/${libs.versions.groovy.get()}/html/gapi/",
'grailsapi': "https://docs.grails.org/${libs.versions.grails.get()}/api/",
'gormapi' : "https://gorm.grails.org/${libs.versions.gorm.get()}/api/",
'springapi': "https://docs.spring.io/spring/docs/${libs.versions.spring.get()}/javadoc-api/"
'groovyapi': "https://docs.groovy-lang.org/${project['groovy.version']}/html/gapi/",
jdaugherty marked this conversation as resolved.
Show resolved Hide resolved
'grailsapi': "https://docs.grails.org/${grailsVersion}/api/",
'gormapi' : "https://gorm.grails.org/${project['grails-datastore.version']}/api/",
'springapi': "https://docs.spring.io/spring/docs/${project['spring-framework.version']}/javadoc-api/"
]
doLast {
def dir = project.layout.buildDirectory.dir('docs').get().asFile
Expand Down
5 changes: 3 additions & 2 deletions examples/pubsub-demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ version = rootProject.version
group = 'pubsub.demo'

dependencies {
implementation platform("org.grails:grails-bom:${grailsVersion}")

implementation project(':grails-plugin-async')
implementation project(':grails-plugin-events')
Expand All @@ -27,13 +28,13 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-logging'
implementation 'org.springframework.boot:spring-boot-starter-tomcat'
implementation libs.micronaut.serde.jackson
implementation 'io.micronaut.serde:micronaut-serde-jackson:2.10.2'

runtimeOnly 'com.h2database:h2'
runtimeOnly 'org.fusesource.jansi:jansi'
runtimeOnly 'com.zaxxer:HikariCP'

testImplementation libs.micronaut.http.client
testImplementation 'io.micronaut:micronaut-http-client:4.6.5'
testImplementation 'org.grails:grails-web-testing-support'
}

Expand Down
8 changes: 8 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ githubSlug=grails/grails-async
githubBranch=6.0.x
developers=Graeme Rocher, Mattias Reichel

grailsVersion=7.0.0-SNAPSHOT
grailsGradlePluginVersion=7.0.0-SNAPSHOT

# TODO: These are for the documentation links, can these be referenced from the bom instead?
spring-framework.version=6.2.1
grails-datastore.version=9.0.0-SNAPSHOT
groovy.version=4.0.24

#gpars docs is currently not available with https
gparsdocs=http://gpars.org/1.2.1/groovydoc
rxjavadocs=https://reactivex.io/RxJava/1.x/javadoc
Expand Down
11 changes: 0 additions & 11 deletions gradle/buildsrc.libs.versions.toml

This file was deleted.

8 changes: 4 additions & 4 deletions gradle/java-config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ java {
configurations.all {

resolutionStrategy.dependencySubstitution {
substitute module("org.codehaus.groovy:groovy") using module('org.apache.groovy:groovy:4.0.22')
substitute module("org.codehaus.groovy:groovy-templates") using module('org.apache.groovy:groovy-templates:4.0.22')
substitute module("org.codehaus.groovy:groovy-xml") using module('org.apache.groovy:groovy-xml:4.0.22')
substitute module("org.codehaus.groovy:groovy-json") using module('org.apache.groovy:groovy-json:4.0.22')
substitute module("org.codehaus.groovy:groovy") using module('org.apache.groovy:groovy:4.0.24')
substitute module("org.codehaus.groovy:groovy-templates") using module('org.apache.groovy:groovy-templates:4.0.24')
substitute module("org.codehaus.groovy:groovy-xml") using module('org.apache.groovy:groovy-xml:4.0.24')
substitute module("org.codehaus.groovy:groovy-json") using module('org.apache.groovy:groovy-json:4.0.24')
}
}
40 changes: 0 additions & 40 deletions gradle/libs.versions.toml

This file was deleted.

17 changes: 9 additions & 8 deletions grails-async-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@ plugins {
group = 'org.grails'

dependencies {
implementation platform("org.grails:grails-bom:${grailsVersion}")

implementation libs.groovy.core
implementation libs.slf4j.api
implementation libs.jakarta.annotation.api
implementation 'org.apache.groovy:groovy'
implementation 'org.slf4j:slf4j-api'
implementation 'jakarta.annotation:jakarta.annotation-api'

compileOnly libs.jakarta.annotation.api
compileOnly 'jakarta.annotation:jakarta.annotation-api'

testImplementation libs.spock.core
testImplementation 'org.spockframework:spock-core'

testRuntimeOnly libs.bytebuddy
testRuntimeOnly libs.objenesis
testRuntimeOnly 'net.bytebuddy:byte-buddy'
testRuntimeOnly 'org.objenesis:objenesis'

testRuntimeOnly libs.slf4j.nop // Get rid of warning about missing slf4j implementation during test task
testRuntimeOnly 'org.slf4j:slf4j-nop' // Get rid of warning about missing slf4j implementation during test task

}

Expand Down
11 changes: 6 additions & 5 deletions grails-async-gpars/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@ plugins {
group = 'org.grails'

dependencies {
implementation platform("org.grails:grails-bom:${grailsVersion}")

api project(':grails-async-core')
api libs.gpars, {
api 'org.codehaus.gpars:gpars:1.2.1', {
exclude group: 'org.multiverse', module: 'multiverse-core' // Multiverse Software Transactional Memory (STM) Engine not used
exclude group: 'org.codehaus.groovy', module: 'groovy-all' // Gpars 1.2.1 pulls in groovy-all:2.1.9
}

implementation libs.groovy.core
implementation libs.slf4j.api
implementation 'org.apache.groovy:groovy'
implementation 'org.slf4j:slf4j-api'

testImplementation libs.spock.core
testImplementation 'org.spockframework:spock-core'

testRuntimeOnly libs.slf4j.nop // Get rid of warning about missing slf4j implementation during test task
testRuntimeOnly 'org.slf4j:slf4j-nop' // Get rid of warning about missing slf4j implementation during test task

}

Expand Down
11 changes: 6 additions & 5 deletions grails-async-rxjava/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ plugins {
group = 'org.grails'

dependencies {
implementation platform("org.grails:grails-bom:${grailsVersion}")

api project(':grails-async-core')
api libs.rxjava
api 'io.reactivex:rxjava:1.3.8'

implementation libs.groovy.core
implementation libs.slf4j.api
implementation 'org.apache.groovy:groovy'
implementation 'org.slf4j:slf4j-api'

testImplementation libs.spock.core
testImplementation 'org.spockframework:spock-core'

testRuntimeOnly libs.slf4j.nop // Get rid of warning about missing slf4j implementation during test task
testRuntimeOnly 'org.slf4j:slf4j-nop' // Get rid of warning about missing slf4j implementation during test task
}

apply from: rootProject.layout.projectDirectory.file('gradle/java-config.gradle')
Expand Down
11 changes: 6 additions & 5 deletions grails-async-rxjava2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ plugins {
group = 'org.grails'

dependencies {
implementation platform("org.grails:grails-bom:${grailsVersion}")

api project(':grails-async-core')
api libs.rxjava2
api 'io.reactivex.rxjava2:rxjava:2.2.21'

implementation libs.groovy.core
implementation libs.slf4j.api
implementation 'org.apache.groovy:groovy'
implementation 'org.slf4j:slf4j-api'

testImplementation libs.spock.core
testImplementation 'org.spockframework:spock-core'

testRuntimeOnly libs.slf4j.nop // Get rid of warning about missing slf4j implementation during test task
testRuntimeOnly 'org.slf4j:slf4j-nop' // Get rid of warning about missing slf4j implementation during test task

}

Expand Down
5 changes: 3 additions & 2 deletions grails-events-compat/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ plugins {
group = 'org.grails'

dependencies {
implementation platform("org.grails:grails-bom:${grailsVersion}")

api project(':grails-events-core')

implementation libs.groovy.core
implementation libs.slf4j.api
implementation 'org.apache.groovy:groovy'
implementation 'org.slf4j:slf4j-api'

}

Expand Down
13 changes: 7 additions & 6 deletions grails-events-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ plugins {
group = 'org.grails'

dependencies {
implementation platform("org.grails:grails-bom:${grailsVersion}")

api libs.spring.context
api libs.spring.tx
api 'org.springframework:spring-context'
api 'org.springframework:spring-tx'

implementation libs.groovy.core
implementation libs.slf4j.api
implementation 'org.apache.groovy:groovy'
implementation 'org.slf4j:slf4j-api'

testImplementation libs.spock.core
testImplementation 'org.spockframework:spock-core'

testRuntimeOnly libs.slf4j.nop // Get rid of warning about missing slf4j implementation during test task
testRuntimeOnly 'org.slf4j:slf4j-nop' // Get rid of warning about missing slf4j implementation during test task

}

Expand Down
9 changes: 5 additions & 4 deletions grails-events-gpars/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ plugins {
group = 'org.grails'

dependencies {
implementation platform("org.grails:grails-bom:${grailsVersion}")

api project(':grails-events-core')
api libs.gpars, {
api 'org.codehaus.gpars:gpars:1.2.1', {
exclude group: 'org.multiverse', module: 'multiverse-core' // Multiverse Software Transactional Memory (STM) Engine not used
exclude group: 'org.codehaus.groovy', module: 'groovy-all' // Gpars 1.2.1 pulls in Groovy 2.1.9
}

implementation libs.groovy.core
implementation libs.slf4j.api
implementation 'org.apache.groovy:groovy'
implementation 'org.slf4j:slf4j-api'

testImplementation libs.spock.core
testImplementation 'org.spockframework:spock-core'

}

Expand Down
Loading
Loading