Skip to content

Commit c06c4e3

Browse files
committed
Reduce size of ZIP distribution, include only JARs needed by CLI
1 parent f70aec6 commit c06c4e3

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ buildscript {
1919

2020
apply plugin: 'idea'
2121

22+
2223
ext {
2324
bintrayPublish = false
2425
// Sets release version
@@ -66,6 +67,8 @@ ext {
6667
}
6768

6869
version = grailsVersion
70+
group = "org.grails"
71+
apply plugin: 'io.codearte.nexus-staging'
6972

7073
// directories created during the build which are related
7174
// to turning the workspace root into a GRAILS_HOME
@@ -204,7 +207,6 @@ subprojects { project ->
204207
apply plugin: 'com.bmuschko.nexus'
205208
apply plugin: 'maven-publish'
206209
apply plugin: 'com.jfrog.bintray'
207-
apply plugin: 'io.codearte.nexus-staging'
208210
}
209211
apply plugin: 'eclipse'
210212
apply plugin: 'idea'

gradle/assemble.gradle

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ def libsConfigurations = []
66
subprojects { subproject ->
77
if(subproject.name == 'grails-dependencies') return
88
if(subproject.name == 'grails-bom') return
9-
configurations {
10-
libsConfigurations << libs {
11-
extendsFrom compile, runtime
12-
["jsp21", "uaa"].collect { configurations.findByName(it) }.findAll { it != null }.each { extendsFrom it }
9+
if(subproject.name == 'grails-shell') {
10+
11+
configurations {
12+
libsConfigurations << libs {
13+
extendsFrom compile, runtime
14+
["jsp21", "uaa"].collect { configurations.findByName(it) }.findAll { it != null }.each { extendsFrom it }
15+
}
1316
}
1417
}
1518
}

0 commit comments

Comments
 (0)