2021-04-05 11:16:02 -04:00
|
|
|
plugins {
|
|
|
|
id "java-gradle-plugin"
|
|
|
|
id "java"
|
|
|
|
id "groovy"
|
|
|
|
id 'com.apollographql.apollo' version '2.4.5'
|
|
|
|
}
|
|
|
|
|
2021-10-07 13:33:15 -04:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
2010-03-03 10:40:57 -05:00
|
|
|
|
|
|
|
repositories {
|
2021-04-02 14:13:07 -04:00
|
|
|
gradlePluginPortal()
|
2015-03-23 12:14:26 -04:00
|
|
|
mavenCentral()
|
2021-04-02 14:13:07 -04:00
|
|
|
maven { url 'https://repo.spring.io/plugins-release/' }
|
2010-03-03 10:40:57 -05:00
|
|
|
}
|
|
|
|
|
2021-04-08 17:50:44 -04:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java {
|
|
|
|
srcDirs = []
|
|
|
|
}
|
|
|
|
groovy {
|
|
|
|
srcDirs += ["src/main/java"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-22 19:47:11 -04:00
|
|
|
gradlePlugin {
|
|
|
|
plugins {
|
2022-01-03 14:31:03 -05:00
|
|
|
checkAntoraVersion {
|
|
|
|
id = "org.springframework.antora.check-version"
|
2022-03-28 11:43:59 -04:00
|
|
|
implementationClass = "org.springframework.gradle.antora.AntoraVersionPlugin"
|
2022-01-03 14:31:03 -05:00
|
|
|
}
|
2019-08-22 19:47:11 -04:00
|
|
|
trang {
|
|
|
|
id = "trang"
|
|
|
|
implementationClass = "trang.TrangPlugin"
|
|
|
|
}
|
2019-12-16 11:45:15 -05:00
|
|
|
locks {
|
|
|
|
id = "locks"
|
|
|
|
implementationClass = "lock.GlobalLockPlugin"
|
|
|
|
}
|
2021-04-05 11:14:13 -04:00
|
|
|
managementConfiguration {
|
|
|
|
id = "io.spring.convention.management-configuration"
|
|
|
|
implementationClass = "io.spring.gradle.convention.ManagementConfigurationPlugin"
|
|
|
|
}
|
2021-04-05 11:16:02 -04:00
|
|
|
updateDependencies {
|
|
|
|
id = "org.springframework.security.update-dependencies"
|
|
|
|
implementationClass = "org.springframework.security.convention.versions.UpdateDependenciesPlugin"
|
|
|
|
}
|
2022-02-17 10:59:27 -05:00
|
|
|
updateProjectVersion {
|
|
|
|
id = "org.springframework.security.update-version"
|
|
|
|
implementationClass = "org.springframework.security.convention.versions.UpdateProjectVersionPlugin"
|
|
|
|
}
|
2021-04-07 18:57:57 -04:00
|
|
|
sagan {
|
|
|
|
id = "org.springframework.security.sagan"
|
|
|
|
implementationClass = "org.springframework.gradle.sagan.SaganPlugin"
|
|
|
|
}
|
2021-04-07 22:23:44 -04:00
|
|
|
githubMilestone {
|
|
|
|
id = "org.springframework.github.milestone"
|
|
|
|
implementationClass = "org.springframework.gradle.github.milestones.GitHubMilestonePlugin"
|
|
|
|
}
|
2021-04-30 15:06:39 -04:00
|
|
|
githubChangelog {
|
|
|
|
id = "org.springframework.github.changelog"
|
|
|
|
implementationClass = "org.springframework.gradle.github.changelog.GitHubChangelogPlugin"
|
|
|
|
}
|
2021-12-22 11:05:59 -05:00
|
|
|
githubRelease {
|
|
|
|
id = "org.springframework.github.release"
|
|
|
|
implementationClass = "org.springframework.gradle.github.release.GitHubReleasePlugin"
|
|
|
|
}
|
2021-05-11 18:10:31 -04:00
|
|
|
s101 {
|
|
|
|
id = "s101"
|
|
|
|
implementationClass = "s101.S101Plugin"
|
|
|
|
}
|
2019-08-22 19:47:11 -04:00
|
|
|
}
|
2013-10-03 15:15:09 -04:00
|
|
|
}
|
|
|
|
|
2021-04-02 14:13:07 -04:00
|
|
|
configurations {
|
|
|
|
implementation {
|
|
|
|
exclude module: 'groovy-all'
|
|
|
|
}
|
2013-01-03 19:27:15 -05:00
|
|
|
}
|
|
|
|
|
2021-04-02 14:13:07 -04:00
|
|
|
dependencies {
|
2021-04-07 18:57:57 -04:00
|
|
|
implementation 'com.google.code.gson:gson:2.8.6'
|
2021-04-02 14:13:07 -04:00
|
|
|
implementation 'com.thaiopensource:trang:20091111'
|
|
|
|
implementation 'net.sourceforge.saxon:saxon:9.1.0.8'
|
2022-01-03 14:31:03 -05:00
|
|
|
implementation 'org.yaml:snakeyaml:1.30'
|
2021-04-02 14:13:07 -04:00
|
|
|
implementation localGroovy()
|
|
|
|
|
2021-05-17 15:00:56 -04:00
|
|
|
implementation 'io.github.gradle-nexus:publish-plugin:1.1.0'
|
2022-03-18 19:11:44 -04:00
|
|
|
implementation 'io.projectreactor:reactor-core:3.4.16'
|
2021-04-05 11:16:02 -04:00
|
|
|
implementation 'gradle.plugin.org.gretty:gretty:3.0.1'
|
|
|
|
implementation 'com.apollographql.apollo:apollo-runtime:2.4.5'
|
|
|
|
implementation 'com.github.ben-manes:gradle-versions-plugin:0.38.0'
|
2021-05-11 18:10:31 -04:00
|
|
|
implementation 'com.github.spullara.mustache.java:compiler:0.9.4'
|
2021-04-02 14:13:07 -04:00
|
|
|
implementation 'io.spring.javaformat:spring-javaformat-gradle-plugin:0.0.15'
|
2021-09-17 16:44:34 -04:00
|
|
|
implementation 'io.spring.nohttp:nohttp-gradle:0.0.10'
|
2021-05-11 18:10:31 -04:00
|
|
|
implementation 'net.sourceforge.htmlunit:htmlunit:2.37.0'
|
2021-04-02 14:13:07 -04:00
|
|
|
implementation 'org.hidetake:gradle-ssh-plugin:2.10.1'
|
2022-01-07 13:44:40 -05:00
|
|
|
implementation 'org.jfrog.buildinfo:build-info-extractor-gradle:4.26.1'
|
2021-04-02 14:13:07 -04:00
|
|
|
implementation 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7.1'
|
|
|
|
|
2022-01-17 08:51:09 -05:00
|
|
|
testImplementation platform('org.junit:junit-bom:5.8.2')
|
2021-07-09 17:36:26 -04:00
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api"
|
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-params"
|
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-engine"
|
2021-04-02 14:13:07 -04:00
|
|
|
testImplementation 'org.apache.commons:commons-io:1.3.2'
|
|
|
|
testImplementation 'org.assertj:assertj-core:3.13.2'
|
2021-09-17 16:44:46 -04:00
|
|
|
testImplementation 'org.mockito:mockito-core:3.12.4'
|
|
|
|
testImplementation 'org.mockito:mockito-junit-jupiter:3.12.4'
|
2021-04-07 18:57:57 -04:00
|
|
|
testImplementation "com.squareup.okhttp3:mockwebserver:3.14.9"
|
2010-03-03 10:40:57 -05:00
|
|
|
}
|
2021-04-02 17:08:28 -04:00
|
|
|
|
|
|
|
|
2022-01-03 14:31:03 -05:00
|
|
|
tasks.named('test', Test).configure {
|
2021-07-09 17:36:26 -04:00
|
|
|
onlyIf { !project.hasProperty("buildSrc.skipTests") }
|
|
|
|
useJUnitPlatform()
|
2022-01-03 14:31:03 -05:00
|
|
|
jvmArgs(
|
|
|
|
'--add-opens', 'java.base/java.lang=ALL-UNNAMED',
|
|
|
|
'--add-opens', 'java.base/java.util=ALL-UNNAMED'
|
|
|
|
)
|
2021-07-09 17:36:26 -04:00
|
|
|
}
|