Skip to content

Commit c8da746

Browse files
committed
Clean up Gradle build scripts
Closes gh-100
1 parent e2384f2 commit c8da746

File tree

8 files changed

+3
-206
lines changed

8 files changed

+3
-206
lines changed

build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ buildscript {
1212
classpath "io.github.gradle-nexus:publish-plugin:2.0.0"
1313
classpath "org.graceframework:grace-gradle-plugin:$graceVersion"
1414
classpath "org.gradle:test-retry-gradle-plugin:1.6.0"
15-
classpath "io.spring.gradle:dependency-management-plugin:$springDependencyManagementPluginVersion"
1615
}
1716
}
1817

@@ -80,7 +79,6 @@ subprojects { project->
8079
apply plugin: 'maven-publish'
8180
apply plugin: 'signing'
8281
apply plugin: "org.gradle.test-retry"
83-
apply plugin: "io.spring.dependency-management"
8482

8583
if (ext.isGrailsPlugin) {
8684
apply plugin: "org.graceframework.grace-plugin"

component/build.gradle

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,7 @@
1-
buildscript {
2-
repositories {
3-
mavenCentral()
4-
gradlePluginPortal()
5-
maven {
6-
url = 'https://repo.gradle.org/gradle/libs-releases'
7-
}
8-
if (project.projectVersion.endsWith('-SNAPSHOT')) {
9-
maven {
10-
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
11-
}
12-
}
13-
}
14-
dependencies {
15-
classpath "org.graceframework:grace-gradle-plugin:$graceVersion"
16-
classpath "io.github.gradle-nexus:publish-plugin:2.0.0"
17-
}
18-
}
19-
20-
ext {
21-
userOrg = 'graceframework'
22-
}
23-
241
group = "org.graceframework.plugins"
252

263
apply plugin: "org.graceframework.grace-plugin"
274

28-
dependencyManagement {
29-
// imports {
30-
// mavenBom "org.graceframework:grace-bom:$graceVersion"
31-
// }
32-
applyMavenExclusions false
33-
}
34-
355
dependencies {
366
api "jakarta.annotation:jakarta.annotation-api:$jakartaAnnotationVersion"
377
api "org.graceframework:grace-core:$graceVersion", {
@@ -47,10 +17,6 @@ dependencies {
4717
testImplementation "org.graceframework:grace-test-support:$graceVersion"
4818
}
4919

50-
springBoot {
51-
mainClass.set('grails.plugin.component.view.Application')
52-
}
53-
5420
jar {
5521
enabled = true
5622
archiveClassifier.set('plugin')

core/build.gradle

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,5 @@
1-
buildscript {
2-
repositories {
3-
mavenCentral()
4-
gradlePluginPortal()
5-
maven {
6-
url = 'https://repo.gradle.org/gradle/libs-releases'
7-
}
8-
}
9-
dependencies {
10-
classpath "org.graceframework:grace-gradle-plugin:$graceVersion"
11-
classpath "io.github.gradle-nexus:publish-plugin:2.0.0"
12-
classpath "io.spring.gradle:dependency-management-plugin:$springDependencyManagementPluginVersion"
13-
}
14-
}
15-
161
group = "org.graceframework"
172

18-
apply plugin: "io.spring.dependency-management"
19-
20-
ext {
21-
userOrg = 'graceframework'
22-
repo = 'grace-views'
23-
isGrailsPlugin = false
24-
projectDesc = "Grace Views Core"
25-
}
26-
27-
repositories {
28-
mavenCentral()
29-
}
30-
313
dependencies {
324
api "org.apache.groovy:groovy:$groovyVersion"
335
api "org.graceframework:grace-core:$graceVersion", {

gradle/build.gradle

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,10 @@
1-
buildscript {
2-
repositories {
3-
mavenCentral()
4-
maven {
5-
url = 'https://repo.gradle.org/gradle/libs-releases'
6-
}
7-
}
8-
dependencies {
9-
classpath "io.spring.gradle:dependency-management-plugin:$springDependencyManagementPluginVersion"
10-
}
11-
}
12-
13-
apply plugin: 'io.spring.dependency-management'
14-
apply plugin: 'java-gradle-plugin'
15-
apply plugin: 'groovy'
16-
17-
ext {
18-
userOrg = 'graceframework'
19-
isGrailsPlugin = false
20-
projectDesc = "Grace Views Gradle Plugin"
1+
plugins {
2+
id 'java-gradle-plugin'
3+
id 'groovy'
214
}
225

236
group = "org.graceframework.plugins"
247

25-
repositories {
26-
mavenCentral()
27-
maven {
28-
url = "https://plugins.gradle.org/m2/"
29-
}
30-
}
31-
32-
dependencyManagement {
33-
// imports {
34-
// mavenBom "org.graceframework:grace-bom:$graceVersion"
35-
// }
36-
applyMavenExclusions false
37-
}
38-
398
dependencies {
409
compileOnly gradleApi()
4110
api "org.graceframework:grace-gradle-plugin:$graceVersion", {

json-templates/build.gradle

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
group = "org.graceframework.plugins"
22

3-
ext {
4-
userOrg = 'graceframework'
5-
repo = 'grace-views'
6-
isGrailsPlugin = false
7-
projectDesc = "Grace JSON Views Templates"
8-
}
9-
10-
repositories {
11-
mavenCentral()
12-
}
13-
143
dependencies {
154
api project(':views-json')
165
compileOnly "org.graceframework:grace-plugin-rest:$graceVersion"

json-testing-support/build.gradle

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,5 @@
1-
buildscript {
2-
repositories {
3-
mavenCentral()
4-
gradlePluginPortal()
5-
maven {
6-
url = 'https://repo.gradle.org/gradle/libs-releases'
7-
}
8-
}
9-
dependencies {
10-
classpath "org.graceframework:grace-gradle-plugin:$graceVersion"
11-
classpath "io.spring.gradle:dependency-management-plugin:$springDependencyManagementPluginVersion"
12-
classpath "io.github.gradle-nexus:publish-plugin:2.0.0"
13-
}
14-
}
15-
161
group = "org.graceframework"
172

18-
apply plugin: "io.spring.dependency-management"
19-
20-
ext {
21-
userOrg = 'graceframework'
22-
repo = 'grace-views'
23-
isGrailsPlugin = false
24-
projectDesc = "Grace JSON Views Testing Support"
25-
}
26-
27-
repositories {
28-
mavenCentral()
29-
maven {
30-
url = "https://repo.grails.org/grails/core"
31-
}
32-
}
33-
343
dependencies {
354
api "org.graceframework:grace-core:$graceVersion", {
365
exclude group: 'org.graceframework', module: 'grace-datastore-core'

json/build.gradle

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,8 @@
11
import org.grails.gradle.plugin.web.gsp.GroovyPageCompileTask
22

3-
buildscript {
4-
repositories {
5-
mavenCentral()
6-
gradlePluginPortal()
7-
maven {
8-
url = 'https://repo.gradle.org/gradle/libs-releases'
9-
}
10-
if (project.projectVersion.endsWith('-SNAPSHOT')) {
11-
maven {
12-
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
13-
}
14-
}
15-
}
16-
dependencies {
17-
classpath "org.graceframework:grace-gradle-plugin:$graceVersion"
18-
classpath "io.github.gradle-nexus:publish-plugin:2.0.0"
19-
classpath "io.spring.gradle:dependency-management-plugin:$springDependencyManagementPluginVersion"
20-
}
21-
}
22-
233
group = "org.graceframework.plugins"
244

255
apply plugin: "org.graceframework.grace-plugin"
26-
apply plugin: "io.spring.dependency-management"
27-
28-
dependencyManagement {
29-
// imports {
30-
// mavenBom "org.graceframework:grace-bom:$graceVersion"
31-
// }
32-
applyMavenExclusions false
33-
}
346

357
dependencies {
368
api "jakarta.annotation:jakarta.annotation-api:$jakartaAnnotationVersion"
@@ -61,7 +33,3 @@ jar {
6133
archiveClassifier.set('plugin')
6234
includeEmptyDirs = false
6335
}
64-
65-
springBoot {
66-
mainClass.set('grails.plugin.json.view.Application')
67-
}

markup/build.gradle

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,7 @@
1-
buildscript {
2-
repositories {
3-
mavenCentral()
4-
gradlePluginPortal()
5-
maven {
6-
url = 'https://repo.gradle.org/gradle/libs-releases'
7-
}
8-
if (project.projectVersion.endsWith('-SNAPSHOT')) {
9-
maven {
10-
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
11-
}
12-
}
13-
}
14-
dependencies {
15-
classpath "org.graceframework:grace-gradle-plugin:$graceVersion"
16-
classpath "io.github.gradle-nexus:publish-plugin:2.0.0"
17-
}
18-
}
19-
20-
ext {
21-
userOrg = 'graceframework'
22-
}
23-
241
group = "org.graceframework.plugins"
252

263
apply plugin: "org.graceframework.grace-plugin"
274

28-
dependencyManagement {
29-
// imports {
30-
// mavenBom "org.graceframework:grace-bom:$graceVersion"
31-
// }
32-
applyMavenExclusions false
33-
}
34-
355
dependencies {
366
api "jakarta.annotation:jakarta.annotation-api:$jakartaAnnotationVersion"
377
api "org.graceframework:grace-core:$graceVersion"
@@ -45,10 +15,6 @@ dependencies {
4515
testImplementation "org.graceframework:grace-test-support:$graceVersion"
4616
}
4717

48-
springBoot {
49-
mainClass.set('grails.plugin.markup.view.Application')
50-
}
51-
5218
jar {
5319
enabled = true
5420
archiveClassifier.set('plugin')

0 commit comments

Comments
 (0)