Skip to content

Commit e31eab6

Browse files
committed
2.4.0: Welcome GitHub packages
1 parent 0bd739d commit e31eab6

4 files changed

Lines changed: 64 additions & 1 deletion

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
2+
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle
3+
4+
name: Gradle Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up JDK 16
21+
uses: actions/setup-java@v2
22+
with:
23+
java-version: '16'
24+
distribution: 'zulu'
25+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
26+
settings-path: ${{ github.workspace }} # location for the settings.xml file
27+
28+
- name: Build with Gradle
29+
run: gradle build
30+
31+
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
32+
# the publishing section of your build.gradle
33+
- name: Publish to GitHub Packages
34+
run: gradle publish
35+
env:
36+
USERNAME: ${{ github.actor }}
37+
TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎build.gradle‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ plugins {
1717
}
1818

1919
group 'com.github.jonathanxd'
20-
version '2.3.0'
20+
version '2.4.0'
2121

2222
apply plugin: 'java'
2323
apply plugin: 'kotlin'
@@ -104,12 +104,22 @@ license {
104104
publishing {
105105
repositories {
106106
maven {
107+
name = "Local"
107108
// change to point to your repo, e.g. http://my.org/repo
108109
url = "$buildDir/repo"
109110
}
111+
maven {
112+
name = "GitHubPackages"
113+
url = "https://maven.pkg.github.com/JonathanxD/jwiutils"
114+
credentials {
115+
username = System.getenv("USERNAME")
116+
password = System.getenv("TOKEN")
117+
}
118+
}
110119
}
111120
publications {
112121
maven(MavenPublication) {
122+
artifactId 'bytecode-disassembler'
113123
from components.kotlin
114124

115125
artifact sourcesJar
535 Bytes
Binary file not shown.

‎src/test/resources/IndyConcat.java‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,20 @@ private static String haba(String a, String b) {
6161
private static String habaUe(String a, String b) {
6262
return ""+""+"";
6363
}
64+
65+
private static String habaUe2(String a, String b) {
66+
return ""+""+"" + String.class;
67+
}
68+
69+
private static String habaUe23(String a, String b) {
70+
return a + b + "a"+"b"+a+"a"+b+"a"+a+"b";
71+
}
72+
73+
private static String kkk() {
74+
String a = "hello";
75+
char c = ' ';
76+
String b = "world";
77+
return a + c + b;
78+
}
79+
6480
}

0 commit comments

Comments
 (0)