-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
266 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,132 @@ | ||
buildscript { | ||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
maven { url "https://repo.grails.org/grails/core" } | ||
maven { url 'https://repo.gradle.org/gradle/libs-releases' } | ||
} | ||
dependencies { | ||
classpath "org.grails:grails-gradle-plugin:$grailsVersion" | ||
classpath "org.grails:grails-docs:$grailsVersion" | ||
classpath "io.github.gradle-nexus:publish-plugin:1.3.0" | ||
classpath "org.graceframework:grace-gradle-plugin:$graceVersion" | ||
classpath "org.gradle:test-retry-gradle-plugin:1.4.0" | ||
classpath "io.spring.gradle:dependency-management-plugin:$springDependencyManagementPluginVersion" | ||
} | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
maven { url "https://repo.grails.org/grails/core" } | ||
} | ||
version project.projectVersion | ||
|
||
ext { | ||
commonBuild = 'https://raw.githubusercontent.com/rainboyan/grails-common-build/22.0.x' | ||
isReleaseVersion = !project.projectVersion.endsWith('-SNAPSHOT') | ||
graceVersion = project.graceVersion | ||
userOrg = "graceframework" | ||
} | ||
|
||
subprojects { | ||
|
||
version project.projectVersion | ||
version project.projectVersion | ||
|
||
apply plugin:'idea' | ||
|
||
ext { | ||
userOrg = "grails" | ||
isGrailsPlugin = name.startsWith('grails-plugin') | ||
isBuildSnapshot = version.toString().endsWith("-SNAPSHOT") | ||
apply plugin: 'maven-publish' | ||
apply plugin: "io.github.gradle-nexus.publish-plugin" | ||
|
||
nexusPublishing { | ||
repositories { | ||
sonatype { | ||
def ossUser = System.getenv("SONATYPE_USERNAME") ?: project.hasProperty("sonatypeOssUsername") ? project.sonatypeOssUsername : '' | ||
def ossPass = System.getenv("SONATYPE_PASSWORD") ?: project.hasProperty("sonatypeOssPassword") ? project.sonatypeOssPassword : '' | ||
def ossStagingProfileId = System.getenv("SONATYPE_STAGING_PROFILE_ID") ?: project.hasProperty("sonatypeOssStagingProfileId") ? project.sonatypeOssStagingProfileId : '' | ||
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/") | ||
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") | ||
username = ossUser | ||
password = ossPass | ||
stagingProfileId = ossStagingProfileId | ||
} | ||
} | ||
} | ||
|
||
if(isGrailsPlugin) { | ||
group "org.grails.plugins" | ||
subprojects { project-> | ||
if (project.name.startsWith('grace-plugin')) { | ||
group "org.graceframework.plugins" | ||
} | ||
else { | ||
group "org.grails" | ||
group "org.graceframework" | ||
} | ||
version project.projectVersion | ||
|
||
repositories { | ||
mavenLocal() | ||
maven { url "https://repo.grails.org/grails/core" } | ||
if (project.name.startsWith('examples') || project.name.endsWith('docs')) { | ||
return | ||
} | ||
|
||
if (it.projectDir.path.endsWith("examples/${it.name}".toString())) { | ||
apply plugin:"org.grails.grails-web" | ||
} | ||
else if (isGrailsPlugin) { | ||
apply from: resources.text.fromInsecureUri("${commonBuild}/common-plugin.gradle") | ||
apply plugin: 'eclipse' | ||
apply plugin: 'idea' | ||
apply plugin: 'java-library' | ||
apply plugin: 'groovy' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'signing' | ||
apply plugin: "org.gradle.test-retry" | ||
apply plugin: "io.spring.dependency-management" | ||
|
||
sourceCompatibility = 11 | ||
targetCompatibility = 11 | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { url 'https://repo.gradle.org/gradle/libs-releases' } | ||
} | ||
else { | ||
apply from: resources.text.fromInsecureUri("${commonBuild}/common-project.gradle") | ||
|
||
dependencyManagement { | ||
imports { | ||
mavenBom "org.graceframework:grace-bom:$graceVersion" | ||
} | ||
applyMavenExclusions false | ||
} | ||
|
||
dependencies { | ||
compileOnly 'javax.annotation:javax.annotation-api:1.3.2' | ||
apply from: '../publishing/mavenCentral.gradle' | ||
|
||
|
||
if (project.name.startsWith('grace-')) { | ||
|
||
configurations { | ||
documentation | ||
} | ||
|
||
dependencies { | ||
api "org.codehaus.groovy:groovy:$groovyVersion" | ||
api "org.slf4j:slf4j-api:$slf4jVersion" | ||
api "javax.inject:javax.inject:1" | ||
api "javax.annotation:javax.annotation-api:1.3.2" | ||
documentation "org.fusesource.jansi:jansi:$jansiVersion" | ||
documentation "org.codehaus.groovy:groovy-dateutil:$groovyVersion" | ||
documentation "info.picocli:picocli:4.6.3" | ||
documentation "com.github.javaparser:javaparser-core:$javaParserCoreVersion" | ||
|
||
testImplementation "org.spockframework:spock-core:$spockVersion" | ||
testImplementation "net.bytebuddy:byte-buddy:1.14.5" | ||
testImplementation "org.objenesis:objenesis:3.2" | ||
testImplementation "org.codehaus.groovy:groovy-test-junit5:${groovyVersion}" | ||
testImplementation "org.junit.jupiter:junit-jupiter-api:5.8.2" | ||
testImplementation "org.junit.platform:junit-platform-runner:1.8.2" | ||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.8.2" | ||
} | ||
|
||
java { | ||
withJavadocJar() | ||
withSourcesJar() | ||
} | ||
|
||
tasks.withType(Test) { | ||
useJUnitPlatform() | ||
testLogging { | ||
showStandardStreams = true | ||
exceptionFormat = 'full' | ||
} | ||
configure { | ||
retry { | ||
maxRetries = 2 | ||
maxFailures = 20 | ||
failOnPassedAfterRetry = true | ||
} | ||
} | ||
} | ||
|
||
groovydoc.classpath = configurations.documentation | ||
} | ||
} | ||
|
||
apply from:"${commonBuild}/common-publishing.gradle" | ||
apply from:"${commonBuild}/common-docs.gradle" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
dependencies { | ||
api project(":grails-async") | ||
api project(":grace-async") | ||
implementation "io.reactivex.rxjava2:rxjava:$rxJava2Version" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
dependencies { | ||
api project(":grails-events"), project(":grails-events-transform") | ||
api project(":grace-events"), project(":grace-events-transform") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
dependencies { | ||
api project(":grails-events") | ||
api project(":grace-events") | ||
implementation "io.reactivex:rxjava:$rxJavaVersion" | ||
|
||
testImplementation project(":grails-events-transform") | ||
testImplementation "org.grails:grails-datastore-gorm-test:$gormVersion", { | ||
exclude group:'org.grails', module:'grails-datastore-gorm-validation' | ||
testImplementation project(":grace-events-transform") | ||
testImplementation "org.graceframework:grace-datastore-gorm-test:$gormVersion", { | ||
exclude group:'org.graceframework', module:'grace-datastore-gorm-validation' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
dependencies { | ||
api project(":grails-events") | ||
api project(":grace-events") | ||
implementation "io.reactivex.rxjava2:rxjava:$rxJava2Version" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
dependencies { | ||
api project(":grails-events") | ||
api project(":grace-events") | ||
implementation "org.springframework:spring-context:$springVersion" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
dependencies { | ||
api project(":grails-events") | ||
compileOnly "org.grails:grails-datastore-gorm:$gormVersion", { | ||
exclude group:'org.grails', module:'grails-datastore-gorm-validation' | ||
api project(":grace-events") | ||
compileOnly "org.graceframework:grace-datastore-gorm:$gormVersion", { | ||
exclude group:'org.graceframework', module:'grace-datastore-gorm-validation' | ||
} | ||
|
||
testRuntimeOnly "org.springframework:spring-aop:$springVersion" | ||
testRuntimeOnly "org.springframework:spring-expression:$springVersion" | ||
testImplementation "org.grails:grails-datastore-gorm-test:$gormVersion", { | ||
exclude group:'org.grails', module:'grails-datastore-gorm-validation' | ||
testImplementation "org.graceframework:grace-datastore-gorm-test:$gormVersion", { | ||
exclude group:'org.graceframework', module:'grace-datastore-gorm-validation' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
dependencies { | ||
compileOnly "javax.servlet:javax.servlet-api:$servletApiVersion" | ||
implementation "org.grails:grails-plugin-controllers:$grailsVersion" | ||
api project(':grails-plugin-events') | ||
api project(':grails-async') | ||
implementation "org.graceframework:grace-plugin-controllers:$graceVersion" | ||
api project(':grace-plugin-events') | ||
api project(':grace-async') | ||
|
||
testImplementation "javax.servlet:javax.servlet-api:$servletApiVersion" | ||
testImplementation "org.grails:grails-test:$grailsVersion" | ||
testImplementation "org.graceframework:grace-test:$graceVersion" | ||
testImplementation "org.springframework:spring-test:$springVersion" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
dependencies { | ||
api "org.grails:grails-core:$grailsVersion" | ||
api project(":grails-events"), project(":grails-events-transform") | ||
api project(":grails-events-compat") | ||
api "org.graceframework:grace-core:$graceVersion" | ||
api project(":grace-events"), project(":grace-events-transform") | ||
api project(":grace-events-compat") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.