Skip to content

Commit

Permalink
Do not include environment or service specific configuration files in…
Browse files Browse the repository at this point in the history
… the base framework jars
  • Loading branch information
johann8384 committed May 31, 2018
1 parent e51cb4b commit 2f8efcf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
doc/
*.iml
build/
Expand Down
20 changes: 17 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ allprojects {
apply plugin: 'java'
apply plugin: 'distribution'

version = '0.1.2'
version = '0.1.3'
group = 'io.tsdb.services'

sourceCompatibility = 1.8
Expand Down Expand Up @@ -56,6 +56,14 @@ allprojects {
}
}
}

distributions {
main {
contents {
from jar
}
}
}
}

if (project.hasProperty('test')) {
Expand Down Expand Up @@ -207,7 +215,12 @@ task assembleBinary(type: Copy) {
*/

subprojects {

jar {
exclude "application"
exclude 'logback.xml'
exclude 'logback-access.xml'
exclude "environment.properties"
}

task assembleDistBin(dependsOn: assembleBinary, type: Copy) {
from "${project.buildDir}/install/${project.name}/bin/${project.name}"
Expand Down Expand Up @@ -274,4 +287,5 @@ project ('framework-common') {
}
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
}
}
}

0 comments on commit 2f8efcf

Please sign in to comment.