Skip to content
This repository was archived by the owner on Oct 28, 2022. It is now read-only.

Commit 1ca81cb

Browse files
[Configure] Set java version to 11 from gradle 7.0 CI builds
1 parent 0c6c7fb commit 1ca81cb

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v2
8-
- name: Set up JDK 1.8
8+
- name: Set up JDK 11
99
uses: actions/setup-java@v1
1010
with:
11-
java-version: 1.8
11+
java-version: 11
1212
- run: chmod +x gradlew
1313
- run: chmod -R 777 ./
1414
- name: Build Library

.github/workflows/main.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
if: "contains(github.event.head_commit.message, '[Released]')"
88
steps:
99
- uses: actions/checkout@v2
10-
- name: Set up JDK 1.8
10+
- name: Set up JDK 11
1111
uses: actions/setup-java@v1
1212
with:
13-
java-version: 1.8
13+
java-version: 11
1414
- name: Creating local properties file
1515
run: echo signing.keyId=${{ secrets.SIGNING_KEYID }} >> local.properties
1616
- run: echo signing.password=${{ secrets.SIGNING_PASSWORD }} >> local.properties
@@ -27,11 +27,13 @@ jobs:
2727
- run: type local.properties
2828
- run: chmod +x gradlew
2929
- name: Stage annotations
30-
run: ./gradlew autobindings-annotations:uploadArchives
30+
run: ./gradlew autobindings-annotations:publish
3131
- name: Stage compiler
32-
run: ./gradlew autobindings-compiler:uploadArchives
32+
run: ./gradlew autobindings-compiler:publish
33+
- name: Stage Room-noop
34+
run: ./gradlew autobindings-room-noop:publish
3335
- name: Stage library
34-
run: ./gradlew autobindings:publishReleasePublicationToSonatypeRepository
36+
run: ./gradlew autobindings:publish
3537
- name: Closing repository
3638
run: ./gradlew closeRepository
3739
- name: Release repository

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ task clean(type: Delete) {
3333
}
3434

3535
tasks.register("publishAllLibrariesToMavenCentral") {
36-
def t1 = tasks.getByPath("autobindings-annotations:uploadArchives")
37-
def t2 = tasks.getByPath("autobindings-compiler:uploadArchives")
38-
def t3 = tasks.getByPath("autobindings-room-noop:publishReleasePublicationToSonatypeRepository")
39-
def t4 = tasks.getByPath("autobindings:publishReleasePublicationToSonatypeRepository")
36+
def t1 = tasks.getByPath("autobindings-annotations:publish")
37+
def t2 = tasks.getByPath("autobindings-compiler:publish")
38+
def t3 = tasks.getByPath("autobindings-room-noop:publish")
39+
def t4 = tasks.getByPath("autobindings:publish")
4040

4141
def t5 = tasks.getByName("closeRepository")
4242
def t6 = tasks.getByName("releaseRepository")

0 commit comments

Comments
 (0)