Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 60124cd

Browse files
committedAug 24, 2018
prepare first release
1 parent e560cc9 commit 60124cd

File tree

2 files changed

+69
-9
lines changed

2 files changed

+69
-9
lines changed
 

‎.travis.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1-
# Use docker-based build environment (instead of openvz)
2-
sudo: false
3-
41
language: java
5-
jdk:
6-
- oraclejdk8
7-
script: gradle check
2+
3+
deploy:
4+
# deploy to Github
5+
provider: releases
6+
api_key:
7+
secure: SJ3TuoiZf5y3RCHJCkNrrbD4zkvBYhgZwBvRaq1lh7N0RjKfdcO9yD6OMwleCyu/5Ecvt8jRCJOgEDLNb5+IuaLmlnAoPhsgKCbybSm7HhvS4p7BrP0xHniuGazHPF/qbu0Kcs/sWHciJM/Ti/wxmmStVqIkEkcpOUiY84L3iJ5vgsKh7sU88rTf+BkjtUZ98QN7YI9/NnSLmvDuR6PheeIgGZwOCXhFjENpxyfpxhF5QQzwgOSJIqM7uIntsehuiZrcCF5kT7OZEVjkzI+cxD1dlrE3S6ZF2MFuGmjHlkCw/+Wibtjz34Ta2LqOLOYLHr2tkjGBDoFnzv/xqouQXVZHLyBfdhLzcQdFrYap9qGit0OPh1PsdCUo+AdBwHZNDWASMHiL+QkNZA4VSLPMMnL2mktd8QwGGhbBNt2AwXNje+bsESVeWwUsooXgAKgHzzcXcfxmf0yGZNc8eLb1h60QWYMDWSs30DsOJshmtzOqVJ0tAVZVNPMsVqL19lP+Qb22i3ZRlSEEiD/1UqX7qJuZ7a5lYQX7HvjoVkPBRNCxKAUEMfFDf9km07pAXsMSp8hSRbmwexLMuhQiWaCyGX1G3iTTq5xrBxdwwS/CG0zhyqSYuLJ1LP5N4Uh5ff+EK4s7ZiT4eY7F8WOa6fpx0yvihhc5CIUYpEwkqjVN+I4=
8+
file_glob: true
9+
file: "./build/libs/jwebassembly-compiler-*.jar"
10+
skip_cleanup: true
11+
overwrite: true
12+
on:
13+
repo: i-net-software/JWebAssembly
14+
tags: true
15+
16+
after_deploy:
17+
- gradle bintrayUpload

‎build.gradle

Lines changed: 53 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
plugins {
22
id "com.moowork.node" version "1.2.0"
33
id 'com.github.kt3k.coveralls' version '2.8.2' // Coverage
4+
id "com.jfrog.bintray" version "1.8.4"
45
}
56

6-
apply plugin: 'java'
7+
apply plugin: 'java-library'
8+
apply plugin: 'maven-publish'
79

810
group 'de.inetsoftware'
911
archivesBaseName = 'jwebassembly-compiler'
@@ -14,8 +16,8 @@ repositories {
1416
}
1517

1618
dependencies {
17-
compile 'de.inetsoftware:jwebassembly-api:+'
18-
compile 'com.google.code.findbugs:jsr305:3.0.1'
19+
compileOnly 'com.google.code.findbugs:jsr305:3.0.1'
20+
testCompile 'de.inetsoftware:jwebassembly-api:+'
1921
testCompile 'junit:junit:+'
2022
}
2123

@@ -97,3 +99,51 @@ jacocoTestReport {
9799
}
98100
check.dependsOn tasks.coveralls
99101

102+
bintray {
103+
user = System.getenv('BINTRAY_USER')
104+
key = System.getenv('BINTRAY_KEY')
105+
publications = ['JWebAssemblyPublication']
106+
publish = true
107+
override = true
108+
pkg {
109+
repo = 'OSS'
110+
userOrg = 'i-net-software'
111+
licenses = ['Apache-2.0']
112+
vcsUrl = 'https://github.com/i-net-software'
113+
name = group + '.' + archivesBaseName
114+
version {
115+
released = new Date()
116+
}
117+
}
118+
}
119+
120+
publishing {
121+
publications {
122+
JWebAssemblyPublication(MavenPublication) {
123+
from components.java
124+
artifact sourcesJar
125+
artifact javadocJar
126+
artifactId archivesBaseName
127+
pom.withXml {
128+
def root = asNode()
129+
root.appendNode('name', 'JWebAssembly-Compiler')
130+
root.appendNode('description', 'A Java to WebAssembly compiler.')
131+
root.appendNode('url', 'https://github.com/i-net-software/JWebAssembly')
132+
133+
def node = root.appendNode('developers').appendNode( 'developer' )
134+
node.appendNode( 'id', 'Horcrux7' )
135+
node.appendNode( 'name', 'Volker Berlin' )
136+
node.appendNode( 'email', 'vberlin@inetsoftware.de' )
137+
node.appendNode( 'organization', 'i-net software' )
138+
node.appendNode( 'organizationUrl', 'https://www.inetsoftware.de' )
139+
140+
node = root.appendNode('scm')
141+
node.appendNode( 'connection', 'scm:git:git@github.com:i-net-software/JWebAssembly.git' )
142+
node.appendNode( 'developerConnection', 'scm:git:git@github.com:i-net-software/JWebAssembly.git' )
143+
node.appendNode( 'url', 'https://github.com/i-net-software/JWebAssembly' )
144+
145+
root.children().last()
146+
}
147+
}
148+
}
149+
}

0 commit comments

Comments
 (0)