Skip to content

Commit

Permalink
Configure jar for release
Browse files Browse the repository at this point in the history
  • Loading branch information
tokou committed Jan 21, 2018
1 parent d9cc823 commit 228f19f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {
}

group 'com.github.tokou.firebasepush'
version '1.0-SNAPSHOT'
version '0.9'

apply plugin: 'kotlin'

Expand All @@ -24,6 +24,18 @@ dependencies {
testCompile "junit:junit:4.12"
}

jar {
manifest {
attributes(
"Implementation-Title": "FirebasePush",
"Implementation-Version": version,
"Main-Class": "com.github.tokou.firebasepush.FirebasePushApp",
"Class-Path": configurations.compile.collect { it.getName() }.join(' ')
)
}
from configurations.compile.collect { entry -> zipTree(entry) }
}

compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
Expand Down

0 comments on commit 228f19f

Please sign in to comment.