Skip to content

Commit

Permalink
Updated to use new java, gradle, sifgraph, github workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorRodchenkov committed Oct 6, 2022
1 parent e33c692 commit abc7827
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 13 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: gradle

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

# env:
# _JAVA_OPTIONS: "--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED"

name: Build with Gradle

strategy:
fail-fast: false

steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'temurin'
cache: gradle
- name: Build with Gradle
run: |
./gradlew build
find . -name '*.jar'
- name: Cleanup Gradle Cache
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties
- name: Move Artifacts
run: |
pwd
find . -name 'sifgraph-server*.jar' -exec bash -c 'mv $0 ./sifgraph-server.jar' {} \;
ls
- name: Release
uses: softprops/action-gh-release@v1
with:
name: 'latest'
tag_name: 'latest'
prerelease: true
files: sifgraph-server.jar
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:13-jdk-alpine
FROM openjdk:17
VOLUME /tmp
ARG JAR_FILE="build/libs/sifgraph-server*.jar"
ARG DATA_FILE="data.txt.gz"
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Pathway Commons SIF Graph Query Server

[![Build Status](https://travis-ci.org/PathwayCommons/sifgraph-server.svg?branch=master)](https://travis-ci.org/PathwayCommons/sifgraph-server)
[![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)
![Build](https://github.com/PathwayCommons/sifgraph-server/actions/workflows/gradle.yml/badge.svg?branch=master)

A Spring Boot RESTful web service built around [sifgraph](https://github.com/PathwayCommons/sifgraph)
java library that executes _neighborhood_, _pathsbetween_, etc., graph queries
Expand Down
7 changes: 3 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repositories {
}

dependencies {
implementation 'pathwaycommons.sif:sifgraph:1.0.0-SNAPSHOT'
implementation 'pathwaycommons.sif:sifgraph:1.1.0-SNAPSHOT'

implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-web'
Expand All @@ -43,7 +43,6 @@ dependencies {
implementation 'javax.activation:activation:1.1.1'
}

sourceCompatibility = 1.8
sourceCompatibility = 8
group = 'pathwaycommons'
version = '0.3.1'

version = '0.4.0'
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit abc7827

Please sign in to comment.