Skip to content

Commit abc7827

Browse files
Updated to use new java, gradle, sifgraph, github workflow.
1 parent e33c692 commit abc7827

6 files changed

Lines changed: 58 additions & 13 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: gradle
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
# env:
16+
# _JAVA_OPTIONS: "--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED"
17+
18+
name: Build with Gradle
19+
20+
strategy:
21+
fail-fast: false
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Set up JDK
26+
uses: actions/setup-java@v2
27+
with:
28+
java-version: 17
29+
distribution: 'temurin'
30+
cache: gradle
31+
- name: Build with Gradle
32+
run: |
33+
./gradlew build
34+
find . -name '*.jar'
35+
- name: Cleanup Gradle Cache
36+
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
37+
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
38+
run: |
39+
rm -f ~/.gradle/caches/modules-2/modules-2.lock
40+
rm -f ~/.gradle/caches/modules-2/gc.properties
41+
- name: Move Artifacts
42+
run: |
43+
pwd
44+
find . -name 'sifgraph-server*.jar' -exec bash -c 'mv $0 ./sifgraph-server.jar' {} \;
45+
ls
46+
- name: Release
47+
uses: softprops/action-gh-release@v1
48+
with:
49+
name: 'latest'
50+
tag_name: 'latest'
51+
prerelease: true
52+
files: sifgraph-server.jar

.travis.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM openjdk:13-jdk-alpine
1+
FROM openjdk:17
22
VOLUME /tmp
33
ARG JAR_FILE="build/libs/sifgraph-server*.jar"
44
ARG DATA_FILE="data.txt.gz"

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Pathway Commons SIF Graph Query Server
22

3-
[![Build Status](https://travis-ci.org/PathwayCommons/sifgraph-server.svg?branch=master)](https://travis-ci.org/PathwayCommons/sifgraph-server)
4-
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/edad8a3d679c4d99b608440dc6d397a8)](https://www.codacy.com/app/IgorRodchenkov/sifgraph-server?utm_source=github.com&utm_medium=referral&utm_content=PathwayCommons/sifgraph-server&utm_campaign=Badge_Grade)
3+
![Build](https://github.com/PathwayCommons/sifgraph-server/actions/workflows/gradle.yml/badge.svg?branch=master)
54

65
A Spring Boot RESTful web service built around [sifgraph](https://github.com/PathwayCommons/sifgraph)
76
java library that executes _neighborhood_, _pathsbetween_, etc., graph queries

build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repositories {
2525
}
2626

2727
dependencies {
28-
implementation 'pathwaycommons.sif:sifgraph:1.0.0-SNAPSHOT'
28+
implementation 'pathwaycommons.sif:sifgraph:1.1.0-SNAPSHOT'
2929

3030
implementation 'org.springframework.boot:spring-boot-starter-actuator'
3131
implementation 'org.springframework.boot:spring-boot-starter-web'
@@ -43,7 +43,6 @@ dependencies {
4343
implementation 'javax.activation:activation:1.1.1'
4444
}
4545

46-
sourceCompatibility = 1.8
46+
sourceCompatibility = 8
4747
group = 'pathwaycommons'
48-
version = '0.3.1'
49-
48+
version = '0.4.0'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)