Publish on master push, update "Import" README section

dev
Exlll 3 years ago
parent 84f38cdc71
commit 65555f7dd6

@ -2,7 +2,7 @@ name: publish-on-master-push
on: on:
push: push:
branches: [ dev ] # TODO: change to master branches: [ master ]
paths-ignore: paths-ignore:
- '**/README.md' - '**/README.md'

@ -9,7 +9,7 @@ on:
paths-ignore: paths-ignore:
- '**/README.md' - '**/README.md'
jobs: jobs:
check: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -18,7 +18,7 @@ jobs:
with: with:
distribution: 'adopt' distribution: 'adopt'
java-version: '16' java-version: '16'
- name: Check with Gradle - name: Test with Gradle
run: ./gradlew test run: ./gradlew test
- name: Archive test reports - name: Archive test reports
if: ${{ failure() }} if: ${{ failure() }}

@ -468,7 +468,7 @@ public final class DatabasePlugin extends JavaPlugin {
```xml ```xml
<repository> <repository>
<id>de.exlll</id> <id>de.exlll</id>
<url>http://exlll.de:8081/artifactory/releases/</url> <url>https://maven.pkg.github.com/Exlll/ConfigLib</url>
</repository> </repository>
<!-- for Bukkit plugins --> <!-- for Bukkit plugins -->
@ -487,16 +487,23 @@ public final class DatabasePlugin extends JavaPlugin {
``` ```
#### Gradle #### Gradle
```groovy ```groovy
repositories { repositories { maven { url 'https://maven.pkg.github.com/Exlll/ConfigLib' } }
maven {
url 'http://exlll.de:8081/artifactory/releases/'
}
}
dependencies { dependencies {
// for Bukkit plugins // for Bukkit plugins
compile group: 'de.exlll', name: 'configlib-bukkit', version: '2.2.0' implementation group: 'de.exlll', name: 'configlib-bukkit', version: '2.2.0'
// for Bungee plugins
implementation group: 'de.exlll', name: 'configlib-bungee', version: '2.2.0'
}
```
```kotlin
repositories { maven { url = uri("https://maven.pkg.github.com/Exlll/ConfigLib") } }
dependencies {
// for Bukkit plugins
implementation("de.exlll:configlib-bukkit:2.2.0")
// for Bungee plugins // for Bungee plugins
compile group: 'de.exlll', name: 'configlib-bungee', version: '2.2.0' implementation("de.exlll:configlib-bungee:2.2.0")
} }
``` ```
Loading…
Cancel
Save