Skip to content

Commit

Permalink
feat(main): make jar executable
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Schulte authored and Tobias Schulte committed Mar 17, 2017
1 parent fdaf3e1 commit 6d93295
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ plugins {
id 'java'
id 'de.gliderpilot.semantic-release' version '1.2.0'
id 'maven'
id 'application'
}

group = "de.gliderpilot.gradle.semantic-release.test"

mainClassName = "de.gliderpilot.semanticrelease.test.Test"

def setExtValue(String property, String systemenv) {
project.ext."$property" = project.hasProperty(property) ? project.getProperty(property) : System.getenv(systemenv)
}
Expand All @@ -26,6 +29,14 @@ artifacts {
sourcesJar
javadocJar
}

jar {
manifest {
attributes([
"main-class": mainClassName
])
}
}
release {
// add a second strategy to create release candidates from 'rc/.*' branches
versionStrategy semanticRelease.releaseStrategy.copyWith(
Expand Down

0 comments on commit 6d93295

Please sign in to comment.