Skip to content

Commit 0b8bc73

Browse files
committed
Use JwIUtils from GitHub Packages
1 parent bb7c873 commit 0b8bc73

File tree

5 files changed

+69
-9
lines changed

5 files changed

+69
-9
lines changed

Kores-DSL/build.gradle

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apply plugin: 'license'
55

66
apply plugin: 'maven-publish'
77

8-
version '4.1.4.base'
8+
version '4.1.7.base'
99

1010
jar {
1111
manifest {
@@ -16,7 +16,13 @@ jar {
1616

1717
repositories {
1818
mavenCentral()
19-
maven { url "https://jitpack.io" }
19+
maven {
20+
url "https://maven.pkg.github.com/jonathanxd/jwiutils"
21+
credentials {
22+
username = project.findProperty("USERNAME") ?: System.getenv("USERNAME")
23+
password = project.findProperty("TOKEN") ?: System.getenv("TOKEN")
24+
}
25+
}
2026
}
2127

2228
dependencies {
@@ -81,6 +87,14 @@ publishing {
8187
// change to point to your repo, e.g. http://my.org/repo
8288
url = "$buildDir/repo"
8389
}
90+
maven {
91+
name = "GitHubPackages"
92+
url = "https://maven.pkg.github.com/koresframework/kores"
93+
credentials {
94+
username = System.getenv("USERNAME")
95+
password = System.getenv("TOKEN")
96+
}
97+
}
8498
}
8599
publications {
86100
maven(MavenPublication) {

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,42 @@
77

88
Kores is a framework which provide to developers a way to construct bytecode and source from a common structure.
99

10+
## How to use Kores
11+
12+
Kores is now using [GitHub Packages](https://github.com/orgs/koresframework/packages?repo_name=Kores) to distribute its binary files instead of [jitpack.io](https://jitpack.io) (because jitpack still not support all JDK versions and sometimes `jitpack.yml` simply do not work).
13+
14+
In order to be able to download Kores Artifacts, you will need to configure your global `$HOME/.gradle/gradle.properties` to store your username and a [PAT](https://github.com/settings/tokens) with `read:packages` permission:
15+
16+
```properties
17+
USERNAME=GITHUB_USERNAME
18+
TOKEN=PAT
19+
```
20+
21+
Then configure your `build.gradle` as the following:
22+
23+
```gradle
24+
def GITHUB_USERNAME = project.findProperty("USERNAME") ?: System.getenv("USERNAME")
25+
def GITHUB_PAT = project.findProperty("TOKEN") ?: System.getenv("TOKEN")
26+
27+
repositories {
28+
mavenCentral()
29+
maven {
30+
url "https://maven.pkg.github.com/jonathanxd/jwiutils"
31+
credentials {
32+
username = GITHUB_USERNAME
33+
password = GITHUB_PAT
34+
}
35+
}
36+
maven {
37+
url "https://maven.pkg.github.com/koresframework/kores"
38+
credentials {
39+
username = GITHUB_USERNAME
40+
password = GITHUB_PAT
41+
}
42+
}
43+
}
44+
```
45+
1046
## Projects using Kores
1147

1248
CodeAPI 2 (old name):

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ buildscript {
1919
}
2020

2121
group 'com.github.koresframework'
22-
version '4.1.6.base'
22+
version '4.1.7.base'
2323

2424
apply from: 'gradle/common.gradle'

gradle/common.gradle

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,21 @@ defaultTasks 'licenseFormat', 'build', 'test', 'jar', 'shadowJar'
2222

2323
sourceCompatibility = 16
2424

25+
def GITHUB_USERNAME = project.findProperty("USERNAME") ?: System.getenv("USERNAME")
26+
def GITHUB_PAT = project.findProperty("TOKEN") ?: System.getenv("TOKEN")
27+
2528
repositories {
2629
mavenCentral()
27-
jcenter()
30+
// jcenter()
2831
maven { url 'https://dl.bintray.com/kotlin/dokka' }
29-
maven { url "https://jitpack.io" }
32+
// maven { url "https://jitpack.io" }
33+
maven {
34+
url "https://maven.pkg.github.com/jonathanxd/jwiutils"
35+
credentials {
36+
username = GITHUB_USERNAME
37+
password = GITHUB_PAT
38+
}
39+
}
3040
}
3141

3242
shadowJar {
@@ -91,9 +101,9 @@ compileTestKotlin {
91101
}
92102

93103
dependencies {
94-
implementation "com.github.JonathanxD.JwIUtils:JwIUtils:$iutils_version"
95-
implementation "com.github.JonathanxD.JwIUtils:jwiutils-kt:$iutils_version"
96-
implementation "com.github.JonathanxD.JwIUtils:specializations:$iutils_version"
104+
implementation "com.github.jonathanxd:jwiutils:$iutils_version"
105+
implementation "com.github.jonathanxd:jwiutils-kt:$iutils_version"
106+
implementation "com.github.jonathanxd:specializations:$iutils_version"
97107
// Kotlin
98108
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
99109
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"

gradle/versions.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ ext.dokka_version = '1.5.0'
55
ext.license_version = '0.16.1'
66
ext.shadow_version = '6.1.0'
77

8-
ext.iutils_version = '4.16.5-1'
8+
ext.iutils_version = '4.17.5'

0 commit comments

Comments
 (0)