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'
|
|
|
|
}
|
|
|
|
|
2022-06-22 09:14:05 -04:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
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()
|
2023-08-18 15:55:02 -04:00
|
|
|
maven { url 'https://repo.spring.io/milestone' }
|
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'
|
2023-07-14 17:44:54 -04:00
|
|
|
implementation 'io.projectreactor:reactor-core:3.5.8'
|
2022-11-23 11:28:51 -05:00
|
|
|
implementation 'org.gretty:gretty:4.0.3'
|
2021-04-05 11:16:02 -04:00
|
|
|
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'
|
2023-03-20 09:35:25 -04:00
|
|
|
implementation 'io.spring.nohttp:nohttp-gradle:0.0.11'
|
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-07-25 14:41:06 -04:00
|
|
|
implementation 'org.jfrog.buildinfo:build-info-extractor-gradle:4.29.0'
|
2021-04-02 14:13:07 -04:00
|
|
|
implementation 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7.1'
|
|
|
|
|
2023-07-14 17:44:57 -04:00
|
|
|
testImplementation platform('org.junit:junit-bom:5.10.0-RC1')
|
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
|
|
|
}
|