Skip to content

Commit 1a76ee7

Browse files
committed
Update Gradle configuration names
Closes gh-9540
1 parent e4c03e9 commit 1a76ee7

File tree

30 files changed

+279
-279
lines changed

30 files changed

+279
-279
lines changed

acl/spring-security-acl.gradle

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
apply plugin: 'io.spring.convention.spring-module'
22

33
dependencies {
4-
compile project(':spring-security-core')
5-
compile 'org.springframework:spring-aop'
6-
compile 'org.springframework:spring-context'
7-
compile 'org.springframework:spring-core'
8-
compile 'org.springframework:spring-jdbc'
9-
compile 'org.springframework:spring-tx'
4+
api project(':spring-security-core')
5+
api 'org.springframework:spring-aop'
6+
api 'org.springframework:spring-context'
7+
api 'org.springframework:spring-core'
8+
api 'org.springframework:spring-jdbc'
9+
api 'org.springframework:spring-tx'
1010

1111
optional 'net.sf.ehcache:ehcache'
1212

13-
testCompile 'org.springframework:spring-beans'
14-
testCompile 'org.springframework:spring-context-support'
15-
testCompile 'org.springframework:spring-test'
13+
testImplementation 'org.springframework:spring-beans'
14+
testImplementation 'org.springframework:spring-context-support'
15+
testImplementation 'org.springframework:spring-test'
1616

17-
testRuntime 'org.hsqldb:hsqldb'
17+
testRuntimeOnly 'org.hsqldb:hsqldb'
1818
}

aspects/spring-security-aspects.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ apply plugin: 'io.spring.convention.spring-module'
22
apply plugin: 'io.freefair.aspectj'
33

44
dependencies {
5-
compile "org.aspectj:aspectjrt"
6-
compile project(':spring-security-core')
7-
compile 'org.springframework:spring-beans'
8-
compile 'org.springframework:spring-context'
9-
compile 'org.springframework:spring-core'
5+
api "org.aspectj:aspectjrt"
6+
api project(':spring-security-core')
7+
api 'org.springframework:spring-beans'
8+
api 'org.springframework:spring-context'
9+
api 'org.springframework:spring-core'
1010

11-
testCompile 'org.springframework:spring-aop'
11+
testImplementation 'org.springframework:spring-aop'
1212
testAspect sourceSets.main.output
1313
}
1414

buildSrc/src/main/groovy/io/spring/gradle/convention/DependencySetPlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public class DependencySetPlugin implements Plugin<Project> {
119119

120120
project.plugins.withType(JavaPlugin) {
121121
project.dependencies {
122-
testCompile project.testDependencies
122+
testImplementation project.testDependencies
123123
}
124124
}
125125
}

cas/spring-security-cas.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
apply plugin: 'io.spring.convention.spring-module'
22

33
dependencies {
4-
compile project(':spring-security-core')
5-
compile project(':spring-security-web')
6-
compile 'org.jasig.cas.client:cas-client-core'
7-
compile 'org.springframework:spring-beans'
8-
compile 'org.springframework:spring-context'
9-
compile 'org.springframework:spring-core'
10-
compile 'org.springframework:spring-web'
4+
api project(':spring-security-core')
5+
api project(':spring-security-web')
6+
api 'org.jasig.cas.client:cas-client-core'
7+
api 'org.springframework:spring-beans'
8+
api 'org.springframework:spring-context'
9+
api 'org.springframework:spring-core'
10+
api 'org.springframework:spring-web'
1111

1212
optional 'com.fasterxml.jackson.core:jackson-databind'
1313
optional 'net.sf.ehcache:ehcache'
1414

1515
provided 'javax.servlet:javax.servlet-api'
1616

17-
testCompile 'org.skyscreamer:jsonassert'
17+
testImplementation 'org.skyscreamer:jsonassert'
1818
}

config/spring-security-config.gradle

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ repositories {
1010

1111
dependencies {
1212
// NB: Don't add other compile time dependencies to the config module as this breaks tooling
13-
compile project(':spring-security-core')
14-
compile 'org.springframework:spring-aop'
15-
compile 'org.springframework:spring-beans'
16-
compile 'org.springframework:spring-context'
17-
compile 'org.springframework:spring-core'
13+
api project(':spring-security-core')
14+
api 'org.springframework:spring-aop'
15+
api 'org.springframework:spring-beans'
16+
api 'org.springframework:spring-context'
17+
api 'org.springframework:spring-core'
1818

1919
optional project(':spring-security-ldap')
2020
optional project(':spring-security-messaging')
@@ -40,52 +40,52 @@ dependencies {
4040

4141
provided 'javax.servlet:javax.servlet-api'
4242

43-
testCompile project(':spring-security-aspects')
44-
testCompile project(':spring-security-cas')
45-
testCompile project(':spring-security-test')
46-
testCompile project(path : ':spring-security-core', configuration : 'tests')
47-
testCompile project(path : ':spring-security-ldap', configuration : 'tests')
48-
testCompile project(path : ':spring-security-oauth2-client', configuration : 'tests')
49-
testCompile project(path : ':spring-security-oauth2-resource-server', configuration : 'tests')
50-
testCompile project(path : ':saml2-service-provider-core', configuration : 'tests')
51-
testCompile project(path : ':saml2-service-provider-opensaml4', configuration : 'tests')
52-
testCompile project(path : ':spring-security-web', configuration : 'tests')
53-
testCompile apachedsDependencies
54-
testCompile powerMock2Dependencies
55-
testCompile 'com.squareup.okhttp3:mockwebserver'
56-
testCompile 'ch.qos.logback:logback-classic'
57-
testCompile 'io.projectreactor.netty:reactor-netty'
58-
testCompile 'io.rsocket:rsocket-transport-netty'
59-
testCompile 'javax.annotation:jsr250-api:1.0'
60-
testCompile 'javax.xml.bind:jaxb-api'
61-
testCompile 'ldapsdk:ldapsdk:4.1'
62-
testCompile('net.sourceforge.htmlunit:htmlunit') {
43+
testImplementation project(':spring-security-aspects')
44+
testImplementation project(':spring-security-cas')
45+
testImplementation project(':spring-security-test')
46+
testImplementation project(path : ':spring-security-core', configuration : 'tests')
47+
testImplementation project(path : ':spring-security-ldap', configuration : 'tests')
48+
testImplementation project(path : ':spring-security-oauth2-client', configuration : 'tests')
49+
testImplementation project(path : ':spring-security-oauth2-resource-server', configuration : 'tests')
50+
testImplementation project(path : ':saml2-service-provider-core', configuration : 'tests')
51+
testImplementation project(path : ':saml2-service-provider-opensaml4', configuration : 'tests')
52+
testImplementation project(path : ':spring-security-web', configuration : 'tests')
53+
testImplementation apachedsDependencies
54+
testImplementation powerMock2Dependencies
55+
testImplementation 'com.squareup.okhttp3:mockwebserver'
56+
testImplementation 'ch.qos.logback:logback-classic'
57+
testImplementation 'io.projectreactor.netty:reactor-netty'
58+
testImplementation 'io.rsocket:rsocket-transport-netty'
59+
testImplementation 'javax.annotation:jsr250-api:1.0'
60+
testImplementation 'javax.xml.bind:jaxb-api'
61+
testImplementation 'ldapsdk:ldapsdk:4.1'
62+
testImplementation('net.sourceforge.htmlunit:htmlunit') {
6363
exclude group: 'commons-logging', module: 'commons-logging'
6464
}
65-
testCompile 'org.eclipse.persistence:javax.persistence'
66-
testCompile 'org.hibernate:hibernate-entitymanager'
67-
testCompile 'org.hsqldb:hsqldb'
68-
testCompile ('org.openid4java:openid4java-nodeps') {
65+
testImplementation 'org.eclipse.persistence:javax.persistence'
66+
testImplementation 'org.hibernate:hibernate-entitymanager'
67+
testImplementation 'org.hsqldb:hsqldb'
68+
testImplementation ('org.openid4java:openid4java-nodeps') {
6969
exclude group: 'com.google.code.guice', module: 'guice'
7070
}
71-
testCompile('org.seleniumhq.selenium:htmlunit-driver') {
71+
testImplementation('org.seleniumhq.selenium:htmlunit-driver') {
7272
exclude group: 'commons-logging', module: 'commons-logging'
7373
}
74-
testCompile('org.seleniumhq.selenium:selenium-java') {
74+
testImplementation('org.seleniumhq.selenium:selenium-java') {
7575
exclude group: 'commons-logging', module: 'commons-logging'
7676
exclude group: 'io.netty', module: 'netty'
7777
}
78-
testCompile 'org.slf4j:jcl-over-slf4j'
79-
testCompile 'org.springframework.ldap:spring-ldap-core'
80-
testCompile 'org.springframework:spring-expression'
81-
testCompile 'org.springframework:spring-jdbc'
82-
testCompile 'org.springframework:spring-orm'
83-
testCompile 'org.springframework:spring-tx'
84-
testCompile ('org.springframework.data:spring-data-jpa') {
78+
testImplementation 'org.slf4j:jcl-over-slf4j'
79+
testImplementation 'org.springframework.ldap:spring-ldap-core'
80+
testImplementation 'org.springframework:spring-expression'
81+
testImplementation 'org.springframework:spring-jdbc'
82+
testImplementation 'org.springframework:spring-orm'
83+
testImplementation 'org.springframework:spring-tx'
84+
testImplementation ('org.springframework.data:spring-data-jpa') {
8585
exclude group: 'org.aspectj', module: 'aspectjrt'
8686
}
8787

88-
testRuntime 'org.hsqldb:hsqldb'
88+
testRuntimeOnly 'org.hsqldb:hsqldb'
8989
}
9090

9191

core/spring-security-core.gradle

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ def includeProject = project(':spring-security-crypto')
66

77
configurations {
88
included
9-
compile.extendsFrom included
9+
api.extendsFrom included
1010
}
1111

1212
dependencies {
13-
compile 'org.springframework:spring-aop'
14-
compile 'org.springframework:spring-beans'
15-
compile 'org.springframework:spring-context'
16-
compile 'org.springframework:spring-core'
17-
compile 'org.springframework:spring-expression'
13+
api 'org.springframework:spring-aop'
14+
api 'org.springframework:spring-beans'
15+
api 'org.springframework:spring-context'
16+
api 'org.springframework:spring-core'
17+
api 'org.springframework:spring-expression'
1818

1919
included includeProject
2020

@@ -26,14 +26,14 @@ dependencies {
2626
optional 'org.springframework:spring-jdbc'
2727
optional 'org.springframework:spring-tx'
2828

29-
testCompile powerMock2Dependencies
30-
testCompile 'commons-collections:commons-collections'
31-
testCompile 'io.projectreactor:reactor-test'
32-
testCompile 'org.skyscreamer:jsonassert'
33-
testCompile 'org.slf4j:jcl-over-slf4j'
34-
testCompile 'org.springframework:spring-test'
29+
testImplementation powerMock2Dependencies
30+
testImplementation 'commons-collections:commons-collections'
31+
testImplementation 'io.projectreactor:reactor-test'
32+
testImplementation 'org.skyscreamer:jsonassert'
33+
testImplementation 'org.slf4j:jcl-over-slf4j'
34+
testImplementation 'org.springframework:spring-test'
3535

36-
testRuntime 'org.hsqldb:hsqldb'
36+
testRuntimeOnly 'org.hsqldb:hsqldb'
3737
}
3838

3939
task springVersion(type: org.gradle.api.tasks.WriteProperties) {

data/spring-security-data.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
apply plugin: 'io.spring.convention.spring-module'
22

33
dependencies {
4-
compile project(':spring-security-core')
5-
compile 'javax.xml.bind:jaxb-api'
6-
compile 'org.springframework.data:spring-data-commons'
7-
compile 'org.springframework:spring-core'
4+
api project(':spring-security-core')
5+
api 'javax.xml.bind:jaxb-api'
6+
api 'org.springframework.data:spring-data-commons'
7+
api 'org.springframework:spring-core'
88

99
}

docs/manual/spring-security-docs-manual.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ asciidoctorj {
2121
revnumber : project.version,
2222
'gh-url': ghUrl,
2323
'gh-samples-url': "$ghUrl/samples"
24-
attributeProvider resolvedVersions(project.configurations.testCompile)
24+
attributeProvider resolvedVersions(project.configurations.testRuntimeClasspath)
2525
}
2626

2727
docsZip {
@@ -31,9 +31,9 @@ docsZip {
3131
}
3232

3333
dependencies {
34-
testCompile "com.unboundid:unboundid-ldapsdk"
35-
testCompile "org.apache.directory.server:apacheds-core"
36-
testCompile "org.springframework:spring-core"
34+
testImplementation "com.unboundid:unboundid-ldapsdk"
35+
testImplementation "org.apache.directory.server:apacheds-core"
36+
testImplementation "org.springframework:spring-core"
3737
}
3838

3939
def resolvedVersions(Configuration configuration) {
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
apply plugin: 'io.spring.convention.spring-test'
22

33
dependencies {
4-
compile project(':spring-security-core')
5-
compile 'org.python:jython'
6-
compile 'org.springframework:spring-aop'
7-
compile 'org.springframework:spring-beans'
8-
compile 'org.springframework:spring-context'
9-
compile 'org.springframework:spring-tx'
4+
implementation project(':spring-security-core')
5+
implementation 'org.python:jython'
6+
implementation 'org.springframework:spring-aop'
7+
implementation 'org.springframework:spring-beans'
8+
implementation 'org.springframework:spring-context'
9+
implementation 'org.springframework:spring-tx'
1010

11-
testCompile project(':spring-security-web')
12-
testCompile 'javax.servlet:javax.servlet-api'
13-
testCompile 'org.springframework:spring-web'
11+
testImplementation project(':spring-security-web')
12+
testImplementation 'javax.servlet:javax.servlet-api'
13+
testImplementation 'org.springframework:spring-web'
1414

15-
testRuntime project(':spring-security-config')
16-
testRuntime 'org.aspectj:aspectjweaver'
15+
testRuntimeOnly project(':spring-security-config')
16+
testRuntimeOnly 'org.aspectj:aspectjweaver'
1717
}
1818

1919
System.setProperty('python.cachedir.skip', 'true')
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
apply plugin: 'io.spring.convention.spring-test'
22

33
dependencies {
4-
compile project(':spring-security-core')
5-
compile 'org.springframework:spring-beans'
6-
compile 'org.springframework:spring-context'
7-
compile 'org.springframework:spring-core'
8-
compile 'org.springframework:spring-tx'
9-
compile project(':spring-security-config')
10-
compile project(':spring-security-ldap')
4+
implementation project(':spring-security-core')
5+
implementation 'org.springframework:spring-beans'
6+
implementation 'org.springframework:spring-context'
7+
implementation 'org.springframework:spring-core'
8+
implementation 'org.springframework:spring-tx'
9+
implementation project(':spring-security-config')
10+
implementation project(':spring-security-ldap')
1111

12-
runtime apachedsDependencies
12+
runtimeOnly apachedsDependencies
1313

14-
testCompile project(path : ':spring-security-ldap', configuration : 'tests')
14+
testImplementation project(path : ':spring-security-ldap', configuration : 'tests')
1515
}
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
apply plugin: 'io.spring.convention.spring-test'
22

33
dependencies {
4-
compile project(':spring-security-core')
5-
compile 'org.springframework:spring-beans'
6-
compile 'org.springframework:spring-context'
7-
compile 'org.springframework:spring-core'
8-
compile 'org.springframework:spring-tx'
9-
compile project(':spring-security-config')
10-
compile project(':spring-security-ldap')
4+
implementation project(':spring-security-core')
5+
implementation 'org.springframework:spring-beans'
6+
implementation 'org.springframework:spring-context'
7+
implementation 'org.springframework:spring-core'
8+
implementation 'org.springframework:spring-tx'
9+
implementation project(':spring-security-config')
10+
implementation project(':spring-security-ldap')
1111

12-
runtime apachedsDependencies
12+
runtimeOnly apachedsDependencies
1313

14-
testCompile project(path : ':spring-security-ldap', configuration : 'tests')
14+
testImplementation project(path : ':spring-security-ldap', configuration : 'tests')
1515
}
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'io.spring.convention.spring-test'
22

33
dependencies {
4-
compile project(':spring-security-core')
5-
compile 'org.springframework:spring-beans'
6-
compile 'org.springframework:spring-context'
7-
compile 'org.springframework:spring-core'
8-
compile 'org.springframework:spring-tx'
9-
compile project(':spring-security-config')
10-
compile project(':spring-security-ldap')
4+
implementation project(':spring-security-core')
5+
implementation 'org.springframework:spring-beans'
6+
implementation 'org.springframework:spring-context'
7+
implementation 'org.springframework:spring-core'
8+
implementation 'org.springframework:spring-tx'
9+
implementation project(':spring-security-config')
10+
implementation project(':spring-security-ldap')
1111

12-
testCompile "com.unboundid:unboundid-ldapsdk"
12+
testImplementation "com.unboundid:unboundid-ldapsdk"
1313
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
apply plugin: 'io.spring.convention.spring-test'
22

33
dependencies {
4-
compile project(':spring-security-core')
5-
compile 'org.springframework:spring-beans'
6-
compile 'org.springframework:spring-context'
7-
compile 'org.springframework:spring-core'
8-
compile 'org.springframework:spring-tx'
9-
compile project(':spring-security-config')
10-
compile project(':spring-security-ldap')
4+
implementation project(':spring-security-core')
5+
implementation 'org.springframework:spring-beans'
6+
implementation 'org.springframework:spring-context'
7+
implementation 'org.springframework:spring-core'
8+
implementation 'org.springframework:spring-tx'
9+
implementation project(':spring-security-config')
10+
implementation project(':spring-security-ldap')
1111
}

0 commit comments

Comments
 (0)