Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Change GitHub Action version to address deprecation of v1/v2 #319

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/nebula-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,22 @@ jobs:
java: [ 8 ]
name: CI with Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- run: |
git config --global user.name "Netflix OSS Maintainers"
git config --global user.email "[email protected]"
- name: Setup jdk
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- uses: actions/cache@v1
- uses: actions/cache@v4
id: gradle-cache
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle/dependency-locks/*.lockfile') }}
restore-keys: |
- ${{ runner.os }}-gradle-
- uses: actions/cache@v1
- uses: actions/cache@v4
id: gradle-wrapper-cache
with:
path: ~/.gradle/wrapper
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/nebula-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,22 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- run: |
git config --global user.name "Netflix OSS Maintainers"
git config --global user.email "[email protected]"
- name: Setup jdk 8
uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: actions/cache@v1
- uses: actions/cache@v4
id: gradle-cache
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle/dependency-locks/*.lockfile') }}
restore-keys: |
- ${{ runner.os }}-gradle-
- uses: actions/cache@v1
- uses: actions/cache@v4
id: gradle-wrapper-cache
with:
path: ~/.gradle/wrapper
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/nebula-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,23 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: |
git config --global user.name "Netflix OSS Maintainers"
git config --global user.email "[email protected]"
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 8
- uses: actions/cache@v2
- uses: actions/cache@v4
id: gradle-cache
with:
path: |
~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
- uses: actions/cache@v2
- uses: actions/cache@v4
id: gradle-wrapper-cache
with:
path: |
Expand Down
106 changes: 55 additions & 51 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'nebula.netflixoss' version '9.1.0'
id "com.github.blindpirate.osgi" version "0.0.4"
id 'com.netflix.nebula.netflixoss' version '11.5.0'
id "com.github.blindpirate.osgi" version "0.0.7"
}

// Establish version and status
Expand All @@ -10,12 +10,16 @@ apply plugin: 'project-report'
apply plugin: 'maven-publish'

subprojects {
apply plugin: 'nebula.netflixoss'
apply plugin: 'java'
apply plugin: 'com.netflix.nebula.netflixoss'
apply plugin: 'java-library'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
sourceCompatibility = 1.8
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}

repositories {
mavenCentral()
Expand All @@ -36,15 +40,15 @@ subprojects {
group = "com.netflix.${githubProjectName}"

dependencies {
compile 'joda-time:joda-time:2.3'
compile 'org.slf4j:slf4j-api:1.7.6'
compile 'org.slf4j:slf4j-log4j12:1.7.21'
compile 'com.googlecode.json-simple:json-simple:1.1'
compile 'org.apache.httpcomponents:httpclient:4.2.1'
compile 'com.sun.jersey:jersey-core:1.11'
testCompile 'junit:junit:4.11'
testCompile 'org.mockito:mockito-all:1.9.5'
testCompile 'io.netty:netty-all:4.1.14.Final'
api 'joda-time:joda-time:2.3'
api 'org.slf4j:slf4j-api:1.7.6'
api 'org.slf4j:slf4j-log4j12:1.7.21'
api 'com.googlecode.json-simple:json-simple:1.1'
api 'org.apache.httpcomponents:httpclient:4.2.1'
api 'com.sun.jersey:jersey-core:1.11'
testImplementation 'junit:junit:4.11'
testImplementation 'org.mockito:mockito-all:1.9.5'
testImplementation 'io.netty:netty-all:4.1.14.Final'
}

project.tasks.withType(Javadoc) {
Expand All @@ -55,9 +59,9 @@ subprojects {

jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.enabled true
xml.required = false
csv.required = false
html.required = true
}
}

Expand All @@ -69,9 +73,9 @@ project(':dyno-core') {
apply plugin: 'project-report'

dependencies {
compile 'org.apache.commons:commons-math:2.2'
compile 'org.apache.commons:commons-lang3:3.6'
compile 'commons-io:commons-io:2.4'
api 'org.apache.commons:commons-math:2.2'
api 'org.apache.commons:commons-lang3:3.6'
api 'commons-io:commons-io:2.4'
}
}

Expand All @@ -80,19 +84,19 @@ project(':dyno-contrib') {
apply plugin: 'project-report'

dependencies {
compile project(':dyno-core')
compile 'com.google.inject:guice:4.1.0'
compile 'com.netflix.archaius:archaius-core:0.7.6'
compile 'com.google.code.findbugs:jsr305:3.0.1'
compile 'com.netflix.servo:servo-core:0.12.17'
compile 'com.netflix.eureka:eureka-client:1.8.6'
compile 'commons-lang:commons-lang:2.6'
compile 'org.apache.commons:commons-lang3:3.5'
compile 'org.codehaus.jettison:jettison:1.3.7'
compile('com.ecwid.consul:consul-api:1.2.1') {
api project(':dyno-core')
api 'com.google.inject:guice:4.1.0'
api 'com.netflix.archaius:archaius-core:0.7.6'
api 'com.google.code.findbugs:jsr305:3.0.1'
api 'com.netflix.servo:servo-core:0.12.17'
api 'com.netflix.eureka:eureka-client:1.8.6'
api 'commons-lang:commons-lang:2.6'
api 'org.apache.commons:commons-lang3:3.5'
api 'org.codehaus.jettison:jettison:1.3.7'
api('com.ecwid.consul:consul-api:1.2.1') {
exclude group: 'org.apache.httpcomponents'
}
testCompile 'com.pszymczyk.consul:embedded-consul:0.3.3'
testImplementation 'com.pszymczyk.consul:embedded-consul:2.2.1'
}
}

Expand All @@ -101,8 +105,8 @@ project(':dyno-memcache') {
apply plugin: 'project-report'

dependencies {
compile project(':dyno-core')
compile project(':dyno-contrib')
api project(':dyno-core')
api project(':dyno-contrib')
}
}

Expand All @@ -112,11 +116,11 @@ project(':dyno-jedis') {

dependencies {
annotationProcessor 'org.projectlombok:lombok:1.18.4'
compile project(':dyno-core')
compile project(':dyno-contrib')
compile 'redis.clients:jedis:3.0.1'
api project(':dyno-core')
api project(':dyno-contrib')
api 'redis.clients:jedis:3.0.1'
compileOnly 'org.projectlombok:lombok:1.18.4'
testCompile 'com.netflix.spinnaker.embedded-redis:embedded-redis:0.8.0'
testImplementation 'com.netflix.spinnaker.embedded-redis:embedded-redis:0.8.0'
}
}

Expand All @@ -125,7 +129,7 @@ project(':dyno-client') {
apply plugin: 'project-report'

dependencies {
compile project(':dyno-jedis')
api project(':dyno-jedis')
}
}

Expand All @@ -135,9 +139,9 @@ project(':dyno-redisson') {
apply plugin: 'project-report'

dependencies {
compile project(':dyno-core')
compile project(':dyno-contrib')
compile 'org.redisson:redisson:1.1.0'
api project(':dyno-core')
api project(':dyno-contrib')
api 'org.redisson:redisson:1.1.0'
}
}

Expand All @@ -146,12 +150,12 @@ project(':dyno-demo') {
apply plugin: 'project-report'

dependencies {
compile project(':dyno-core')
compile project(':dyno-contrib')
compile project(':dyno-memcache')
compile project(':dyno-jedis')
compile project(':dyno-recipes')
compile 'commons-cli:commons-cli:1.4'
api project(':dyno-core')
api project(':dyno-contrib')
api project(':dyno-memcache')
api project(':dyno-jedis')
api project(':dyno-recipes')
api 'commons-cli:commons-cli:1.4'
}
}

Expand All @@ -161,11 +165,11 @@ project(':dyno-recipes') {

dependencies {
annotationProcessor 'org.projectlombok:lombok:1.18.4'
compile project(':dyno-core')
compile project(':dyno-jedis')
compile 'com.google.code.gson:gson:2.8.5'
api project(':dyno-core')
api project(':dyno-jedis')
api 'com.google.code.gson:gson:2.8.5'
compileOnly 'org.projectlombok:lombok:1.18.4'
testCompile 'com.netflix.spinnaker.embedded-redis:embedded-redis:0.8.0'
testImplementation 'com.netflix.spinnaker.embedded-redis:embedded-redis:0.8.0'
}

test {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public void beforeEach() {

@After
public void afterEach() throws Exception {
consulServer.close();
if(consulServer != null) {
consulServer.close();
}
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-all.zip
Loading