From 2f8efcf040d11e2a8fe9f4daf61c7582c68ad3bc Mon Sep 17 00:00:00 2001 From: Jonathan Creasy Date: Thu, 31 May 2018 14:37:31 -0500 Subject: [PATCH] Do not include environment or service specific configuration files in the base framework jars --- .gitignore | 1 + build.gradle | 20 +++++++++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e18cc39..f2201b1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.DS_Store doc/ *.iml build/ diff --git a/build.gradle b/build.gradle index 9cc2efd..2b04111 100644 --- a/build.gradle +++ b/build.gradle @@ -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 @@ -56,6 +56,14 @@ allprojects { } } } + + distributions { + main { + contents { + from jar + } + } + } } if (project.hasProperty('test')) { @@ -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}" @@ -274,4 +287,5 @@ project ('framework-common') { } testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3' } -} \ No newline at end of file +} +