Skip to content

Commit 6751bce

Browse files
authored
Merge pull request RPTools#28 from RPTools/develop
2 parents 6886dc6 + 3192ece commit 6751bce

6 files changed

Lines changed: 119 additions & 23 deletions

File tree

.travis.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
language: java
2+
sudo: false
3+
matrix:
4+
include:
5+
- os: osx
6+
osx_image: xcode10
7+
install:
8+
# Install Oracle JDK 10 and set as JAVA_HOME
9+
- pwd
10+
- cd ..
11+
- mkdir java
12+
- cd java
13+
- wget http://www.nerps.net/jdk10/jdk-10.0.2_osx-x64_bin.dmg
14+
- MOUNTDEV=$(hdiutil mount jdk-10.0.2_osx-x64_bin.dmg | awk '/dev.disk/{print$1}')
15+
- echo $MOUNTDEV
16+
- MOUNTDIR="$(mount | grep JDK | awk '{$1=$2="";sub(" [(].*","");sub("^ ","");print}')"
17+
- echo $MOUNTDIR
18+
- sudo installer -pkg "${MOUNTDIR}/"*.pkg -target /
19+
- hdiutil unmount "$MOUNTDIR"
20+
- echo java home was $JAVA_HOME
21+
- export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home
22+
- echo java home is $JAVA_HOME
23+
- export PATH=$JAVA_HOME/bin:$PATH
24+
- echo $PATH
25+
- cd ../parser
26+
- ./gradlew -version
27+
- java -version
28+
script:
29+
- ./gradlew build
30+
before_deploy:
31+
# # Install Sentry.io CLI
32+
# - curl -sL https://sentry.io/get-cli/ | bash
33+
# - sentry-cli info
34+
- echo Version is $TRAVIS_TAG
35+
# # Create a Sentry release
36+
# - sentry-cli releases new "$TRAVIS_TAG"
37+
# Create Deploy Artifacts
38+
- ./gradlew deploy
39+
deploy:
40+
provider: releases
41+
api_key: $GITHUB_RELEASE_KEY
42+
file_glob: true
43+
file: releases/release-*/*
44+
overwrite: true
45+
skip_cleanup: true
46+
target_commitish: $TRAVIS_COMMIT
47+
tag_name: $TRAVIS_TAG
48+
draft: false
49+
prerelease: true
50+
on:
51+
repo: $REPO
52+
tags: true
53+
all_branches: true
54+
after_deploy:
55+
# Finalize Sentry release
56+
# - sentry-cli releases finalize "$TRAVIS_TAG"
57+
# Associate commits with the Sentry release
58+
# - sentry-cli releases set-commits "$TRAVIS_TAG" --auto
59+
# Tell Sentry.io we have deployed a release
60+
# - sentry-cli releases deploys "$TRAVIS_TAG" new -e Production
61+
after_success:
62+
- wget $TRAVIS_DISCORD_WEBHOOK_SCRIPT_URL
63+
- chmod +x send.sh
64+
- ./send.sh success $DISCORD_URL
65+
after_failure:
66+
- wget $TRAVIS_DISCORD_WEBHOOK_SCRIPT_URL
67+
- chmod +x send.sh
68+
- ./send.sh failure $DISCORD_URL

build.gradle

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import java.text.SimpleDateFormat
2-
31
buildscript {
42
dependencies {
5-
classpath "com.diffplug.spotless:spotless-plugin-gradle:3.13.0"
3+
classpath "com.diffplug.spotless:spotless-plugin-gradle:3.26.1"
4+
classpath "org.ajoberstar.grgit:grgit-gradle:4.0.1"
65
classpath 'antlr:antlr:2.7.7'
76
}
87

@@ -13,7 +12,7 @@ buildscript {
1312

1413
// Access Git info from build script
1514
plugins {
16-
id "org.ajoberstar.grgit" version "3.0.0"
15+
id "org.ajoberstar.grgit" version "4.0.1"
1716
id 'antlr'
1817
}
1918

@@ -23,9 +22,8 @@ apply plugin: 'com.diffplug.gradle.spotless'
2322
apply plugin: 'maven'
2423

2524

26-
27-
sourceCompatibility = 10
28-
targetCompatibility = 10
25+
project.sourceCompatibility = 10
26+
project.targetCompatibility = 10
2927

3028

3129
// In this section you declare where to find the dependencies of your project
@@ -36,18 +34,17 @@ repositories {
3634
}
3735

3836

39-
4037
dependencies {
41-
compile 'rhino:js:1.6R5'
42-
compile 'antlr:antlr:2.7.6'
43-
testCompile group: 'junit', name: 'junit', version: '4.11'
38+
implementation 'rhino:js:1.6R5'
39+
implementation 'antlr:antlr:2.7.6'
40+
testImplementation group: 'junit', name: 'junit', version: '4.11'
4441
antlr 'antlr:antlr:2.7.7'
4542
}
4643

4744
// Custom properties
4845
ext {
4946
// Get tag and commit info from Git to use for version numbering
50-
def repo = org.ajoberstar.grgit.Grgit.open(currentDir: file('.'))
47+
def repo = grgit.open(currentDir: file('.'))
5148
def head = repo.head()
5249
def tags = repo.tag.list().find {
5350
it.commit == head
@@ -100,19 +97,19 @@ configurations {
10097

10198
install {
10299
repositories.mavenInstaller {
103-
pom.version = project.version;
104-
pom.artifactId = 'parser';
105-
pom.groupId = 'net.rptools.parser';
100+
pom.version = project.version
101+
pom.artifactId = 'parser'
102+
pom.groupId = 'net.rptools.parser'
106103
}
107104
}
108105

109106

110107
uploadArchives {
111108
repositories.mavenDeployer {
112-
pom.version = project.version;
113-
pom.artifactId = 'parser';
114-
pom.groupId = 'net.rptools.parser';
115-
configuration = configurations.deployerJars;
109+
pom.version = project.version
110+
pom.artifactId = 'parser'
111+
pom.groupId = 'net.rptools.parser'
112+
configuration = configurations.deployerJars
116113
repository url: 'file://' + projectDir + '/../maven-repo'
117114
}
118115
}

gradle/wrapper/gradle-wrapper.jar

-561 Bytes
Binary file not shown.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Mon Apr 22 00:41:02 ACST 2019
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.3.1-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip

gradlew

Lines changed: 17 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 17 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)