Skip to content

Commit

Permalink
Build tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw committed Apr 7, 2015
1 parent 5c13051 commit 09e9f9f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: java
script: gradle dist
install:
- echo sonatypeUsername=none >> gradle.properties
- echo sonatypePassword=none >> gradle.properties
deploy:
provider: releases
api_key:
secure: Uyx0s8cvlTwy1+hOQewpLUL4JZhF0H/YH4+fEARz7ejldNMdZZMzgbSlvaa/kEPoV4pRKVl9JIlPRToDv0e3xdycVeAN8t27FcjGax4rMJ4F9a6fuaCFRtDjSu757YgBj62C+2rNvDVkVYCoqTAtB409EqSXajZXQajxKUXKpn0=
file:
- build/distributions/xmlcalabash1-xmlunit-$TRAVIS_TAG.zip
- build/libs/xmlcalabash1-xmlunit-$TRAVIS_TAG.zip
on:
tags: true
all_branches: true
11 changes: 5 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ task copyLib(type: Copy) {
File file -> path += " lib/" + file.name
}
project.ext.runtimeClasspath = path.trim()

from lib
into { "build/dist/lib" }
}

task copyCatalog(type: Copy) {
Expand All @@ -63,6 +60,9 @@ task copyCatalog(type: Copy) {
}

jar {
into ('lib') {
from configurations.copydep
}
from { ['build/catalog.xml', 'resources/library.xpl'] }
manifest {
instruction 'Built-By', builtBy
Expand Down Expand Up @@ -101,9 +101,8 @@ gradle.taskGraph.whenReady { taskGraph ->
}

task copyStuff(type: Copy) {
from 'resources/README.md'
from 'resources/catalog.xml'
from 'resources/library.xpl'
from 'README.md'
from 'LICENSE.md'
into 'build/dist'
}

Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'xmlcalabash1-xmlunit'

0 comments on commit 09e9f9f

Please sign in to comment.