Skip to content

Commit a6903a1

Browse files
committed
rename compile to implementation
1 parent 3647ba8 commit a6903a1

26 files changed

+39
-39
lines changed

grails-forge-core/src/main/java/org/grails/forge/build/dependencies/Dependency.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ public Builder buildSrc() {
183183
return scope(Scope.BUILD);
184184
}
185185

186-
public Builder compile() {
187-
return scope(Scope.COMPILE);
186+
public Builder implementation() {
187+
return scope(Scope.IMPLEMENTATION);
188188
}
189189

190190
public Builder console() {

grails-forge-core/src/main/java/org/grails/forge/build/dependencies/Scope.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class Scope {
2626

2727
public static final Scope ANNOTATION_PROCESSOR = new Scope(Source.MAIN, Collections.singletonList(Phase.ANNOTATION_PROCESSING));
2828
public static final Scope BUILD = new Scope(Source.BUILD_SRC, Arrays.asList(Phase.BUILD));
29-
public static final Scope COMPILE = new Scope(Source.MAIN, Arrays.asList(Phase.COMPILATION, Phase.RUNTIME));
29+
public static final Scope IMPLEMENTATION = new Scope(Source.MAIN, Arrays.asList(Phase.COMPILATION, Phase.RUNTIME));
3030
public static final Scope COMPILE_ONLY = new Scope(Source.MAIN, Collections.singletonList(Phase.COMPILATION));
3131
public static final Scope CONSOLE = new Scope(Source.MAIN, Collections.singletonList(Phase.CONSOLE));
3232
public static final Scope DEVELOPMENT_ONLY = new Scope(Source.MAIN, Collections.singletonList(Phase.DEVELOPMENT_ONLY));

grails-forge-core/src/main/java/org/grails/forge/feature/cache/EHCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void apply(GeneratorContext generatorContext) {
4747
generatorContext.addDependency(Dependency.builder()
4848
.groupId("org.grails.plugins")
4949
.lookupArtifactId("cache-ehcache")
50-
.compile());
50+
.implementation());
5151
}
5252

5353
@Override

grails-forge-core/src/main/java/org/grails/forge/feature/cache/GrailsCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void apply(GeneratorContext generatorContext) {
5151
generatorContext.addDependency(Dependency.builder()
5252
.groupId("org.grails.plugins")
5353
.lookupArtifactId("cache")
54-
.compile());
54+
.implementation());
5555
}
5656

5757
@Override

grails-forge-core/src/main/java/org/grails/forge/feature/database/HibernateGorm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void apply(GeneratorContext generatorContext) {
8686
generatorContext.addDependency(Dependency.builder()
8787
.groupId("org.grails.plugins")
8888
.artifactId("hibernate5")
89-
.compile());
89+
.implementation());
9090
generatorContext.addDependency(Dependency.builder()
9191
.groupId("org.apache.tomcat")
9292
.artifactId("tomcat-jdbc")

grails-forge-core/src/main/java/org/grails/forge/feature/database/MongoGorm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void apply(GeneratorContext generatorContext) {
6868
generatorContext.addDependency(Dependency.builder()
6969
.groupId("org.grails.plugins")
7070
.artifactId("mongodb")
71-
.compile());
71+
.implementation());
7272
}
7373

7474
@Override

grails-forge-core/src/main/java/org/grails/forge/feature/database/MongoSync.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void apply(GeneratorContext generatorContext) {
5252
generatorContext.addDependency(Dependency.builder()
5353
.groupId("org.mongodb")
5454
.lookupArtifactId("mongodb-driver-sync")
55-
.compile()
55+
.implementation()
5656
);
5757
}
5858

grails-forge-core/src/main/java/org/grails/forge/feature/database/Neo4jGorm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void apply(GeneratorContext generatorContext) {
5353
generatorContext.addDependency(Dependency.builder()
5454
.groupId("org.grails.plugins")
5555
.artifactId("neo4j")
56-
.compile());
56+
.implementation());
5757

5858
generatorContext.addDependency(Dependency.builder()
5959
.groupId("org.neo4j.test")

grails-forge-core/src/main/java/org/grails/forge/feature/grails/GrailsBase.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ public void apply(GeneratorContext generatorContext) {
5454
generatorContext.addDependency(Dependency.builder()
5555
.groupId("org.grails")
5656
.artifactId("grails-core")
57-
.compile());
57+
.implementation());
5858
generatorContext.addDependency(Dependency.builder()
5959
.groupId("org.grails")
6060
.artifactId("grails-web-boot")
61-
.compile());
61+
.implementation());
6262
generatorContext.addDependency(Dependency.builder()
6363
.groupId("org.grails")
6464
.artifactId("grails-logging")
65-
.compile());
65+
.implementation());
6666

6767
final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
6868
generatorContext.addTemplate("src/main/groovy", new URLTemplate("src/main/groovy/.gitkeep", classLoader.getResource(".gitkeep")));

grails-forge-core/src/main/java/org/grails/forge/feature/grails/GrailsDefaultPlugins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void apply(GeneratorContext generatorContext) {
5757
generatorContext.addDependency(Dependency.builder()
5858
.groupId("org.grails")
5959
.artifactId("grails-plugin-" + artifact)
60-
.compile());
60+
.implementation());
6161
});
6262
final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
6363
generatorContext.addTemplate("messages_properties", new URLTemplate("grails-app/i18n/messages.properties", classLoader.getResource("i18n/messages.properties"), false));

0 commit comments

Comments
 (0)