Skip to content

Commit

Permalink
build versioned jars (#236)
Browse files Browse the repository at this point in the history
* dont include demo in artifacts, output versioned jars

* fix

* Fix version variable name

* build version demo-gallery jar

* fix CI

* Safer
  • Loading branch information
om26er authored and oberstet committed Jul 7, 2017
1 parent eca4496 commit 9b28c09
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions autobahn/build.gradle
Expand Up @@ -36,6 +36,9 @@ if (plugins.hasPlugin(project.PLUGIN_ANDROID_LIB)) {
baseName = 'autobahn'
}
}
jar {
version = project.properties.get("buildVersion", "")
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
Expand Down
3 changes: 3 additions & 0 deletions demo-gallery/build.gradle
Expand Up @@ -53,4 +53,7 @@ if (plugins.hasPlugin(project.PLUGIN_ANDROID_APP)) {
}
}
}
jar {
version = project.properties.get("buildVersion", "")
}
}
5 changes: 3 additions & 2 deletions docker/Dockerfile.netty
Expand Up @@ -39,8 +39,9 @@ ENV PATH=$PATH:/opt/gradle/gradle-${GRADLE_VERSION}/bin

COPY ${PWD} /workspace

RUN gradle installDist -PbuildPlatform=netty
RUN gradle installDist -PbuildPlatform=netty -PbuildVersion=${AUTOBAHN_JAVA_VERSION}

RUN mkdir -p /autobahn; cp /workspace/demo-gallery/build/install/demo-gallery/lib/* /autobahn
RUN mkdir -p /autobahn; cp /workspace/demo-gallery/build/install/demo-gallery/lib/* /autobahn; \
rm /autobahn/demo-gallery*.jar

CMD ["gradle", "installDist", "-PbuildPlatform=netty"]

0 comments on commit 9b28c09

Please sign in to comment.