Skip to content

Commit

Permalink
Default to 'dev' version for local builds
Browse files Browse the repository at this point in the history
  • Loading branch information
albertlatacz committed Dec 2, 2016
1 parent 8fd62f6 commit 6ed3e74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Building Java REPL requires the [gradle](https://gradle.org/).
After cloning the git repository, navigate over to it and run:

```
$ gradle -Pversion=dev shadowJar
$ gradle shadowJar
```

After this completes, the jar completed with bundled dependencies will be located at **build/libs/javarepl-dev.jar**
Expand Down
18 changes: 6 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ plugins {
apply plugin: 'java'
apply plugin: 'maven-publish'


def projectVersion = version
def projectVersion = System.getenv('JAVAREPL_BUILD_NUMBER') != null ? System.getenv('JAVAREPL_BUILD_NUMBER') : 'dev'

repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2" }
maven { url "http://repo.bodar.com" }
}


task javadocJar(type: Jar, dependsOn: shadowJar) {
from javadoc
}
Expand Down Expand Up @@ -92,6 +92,7 @@ bintray {
shadowJar {
baseName = "javarepl"
classifier = null
version = projectVersion

relocate 'com.googlecode.totallylazy', 'javarepl.internal.totallylazy'
relocate 'com.googlecode.lazyparsec', 'javarepl.internal.lazyparsec'
Expand Down Expand Up @@ -125,10 +126,10 @@ jar {
manifest {
attributes 'Main-Class': 'javarepl.Main'
attributes 'Specification-Title': 'java-repl'
attributes 'Specification-Version': version
attributes 'Specification-Version': projectVersion
attributes 'Specification-Vendor': 'Albert Latacz'
attributes 'Implementation-Title': 'java-repl'
attributes 'Implementation-Version': version
attributes 'Implementation-Version': projectVersion
attributes 'Implementation-Vendor': 'Albert Latacz'
}
}
Expand All @@ -142,11 +143,4 @@ dependencies {
testCompile "org.hamcrest:hamcrest-core:1.3"
testCompile "org.hamcrest:hamcrest-library:1.3"
testCompile "junit:junit-dep:4.8.2"
}







}

0 comments on commit 6ed3e74

Please sign in to comment.