| buildscript { |
| repositories { |
| maven { url = 'https://repo.grails.org/grails/core' } |
| maven { url = 'https://repository.apache.org/content/repositories/snapshots' } |
| if (System.getenv("GITHUB_MAVEN_PASSWORD") && !grailsVersion.endsWith('-SNAPSHOT')) { |
| System.out.println("Adding Grails Core Repo") |
| maven { |
| url = 'https://maven.pkg.github.com/grails/grails-core' |
| credentials { |
| username = 'DOES_NOT_MATTER' |
| password = System.getenv("GITHUB_MAVEN_PASSWORD") |
| } |
| } |
| } |
| } |
| dependencies { |
| classpath platform("org.apache.grails:grails-bom:$grailsVersion") |
| classpath 'org.apache.grails:grails-gradle-plugins' |
| } |
| } |
| |
| version = projectVersion |
| group = "org.apache.grails" |
| |
| apply plugin: 'groovy' |
| apply plugin: 'java-library' |
| |
| apply plugin: 'org.apache.grails.gradle.grails-plugin' |
| |
| dependencies { |
| implementation platform("org.apache.grails:grails-bom:$grailsVersion") |
| |
| api "org.apache.grails:grails-core" |
| api "org.apache.grails.web:grails-web-boot" |
| api "org.apache.grails:grails-services" |
| |
| api "org.apache.grails:grails-gsp" |
| api "org.codehaus.gpars:gpars:$gparsVersion" |
| api "com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:$concurrentlinkedhashmapLruVersion" |
| |
| compileOnly "org.apache.grails:grails-domain-class" |
| |
| console "org.apache.grails:grails-console" |
| |
| testImplementation "org.apache.grails:grails-testing-support-datamapping" |
| testImplementation "org.apache.grails:grails-testing-support-web" |
| testImplementation "org.spockframework:spock-core", { |
| exclude group: 'org.apache.groovy' |
| } |
| testImplementation "org.mockito:mockito-core" // to allow for correct mocking with Mock() |
| } |
| |
| apply from: rootProject.layout.projectDirectory.file('gradle/java-config.gradle') |
| apply from: rootProject.layout.projectDirectory.file('gradle/test-config.gradle') |
| |
| // While the aggregated groovydoc will be generated for the project documentation, we must still leave the groovydoc |
| // task for this project enabled so the javadoc is generated and included in the published javadoc jar file |