Skip to content

Commit fbead45

Browse files
committed
Configure publishing
1 parent 3938f6f commit fbead45

File tree

4 files changed

+38
-11
lines changed

4 files changed

+38
-11
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: gradle/gradle-build-action@v2
3232

3333
- name: Run build and tests with Gradle wrapper
34-
run: ./gradlew test build
34+
run: ./gradlew test build PdockerTests
3535

3636
- name: Publish test report
3737
uses: mikepenz/action-junit-report@v3

README.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,32 @@ Add a dependency to your Maven/Gradle buildscript:
1111
e.g.
1212

1313
```groovy
14-
compileOnly 'net.luckperms:rest-api-client:0.1'
14+
repositories {
15+
maven {
16+
url 'https://oss.sonatype.org/content/repositories/snapshots'
17+
}
18+
}
19+
20+
dependencies {
21+
implementation 'net.luckperms:rest-api-java-client:0.1-SNAPSHOT'
22+
}
1523
```
1624

1725
```xml
18-
<dependency>
19-
<groupId>net.luckperms</groupId>
20-
<artifactId>rest-api-client</artifactId>
21-
<version>0.1</version>
22-
</dependency>
26+
<repositories>
27+
<repository>
28+
<id>sonatype-snapshots</id>
29+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
30+
</repository>
31+
</repositories>
32+
33+
<dependencies>
34+
<dependency>
35+
<groupId>net.luckperms</groupId>
36+
<artifactId>rest-api-java-client</artifactId>
37+
<version>0.1-SNAPSHOT</version>
38+
</dependency>
39+
</dependencies>
2340
```
2441

2542
Then, create a new client and start making calls:

build.gradle

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ version = '0.1-SNAPSHOT'
1111

1212

1313
java {
14-
toolchain {
15-
languageVersion = JavaLanguageVersion.of(11)
16-
}
14+
//toolchain {
15+
// languageVersion = JavaLanguageVersion.of(11)
16+
//}
1717

1818
sourceCompatibility = '1.8'
1919
targetCompatibility = '1.8'
@@ -27,6 +27,7 @@ repositories {
2727
}
2828

2929
test {
30+
onlyIf { project.hasProperty('dockerTests') }
3031
useJUnitPlatform()
3132
testLogging {
3233
events = [TestLogEvent.PASSED, TestLogEvent.FAILED, TestLogEvent.SKIPPED]
@@ -60,6 +61,15 @@ dependencies {
6061
}
6162

6263
publishing {
64+
//repositories {
65+
// maven {
66+
// url = 'https://oss.sonatype.org/content/repositories/snapshots'
67+
// credentials {
68+
// username = sonatypeUsername
69+
// password = sonatypePassword
70+
// }
71+
// }
72+
//}
6373
publications {
6474
mavenJava(MavenPublication) {
6575
from components.java

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rootProject.name = 'rest-api-client'
1+
rootProject.name = 'rest-api-java-client'

0 commit comments

Comments
 (0)