Skip to content

Commit

Permalink
jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoenixOrigin committed Oct 16, 2023
1 parent e5faac1 commit d320a17
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,13 @@ jobs:
with:
gradle-version: release-candidate
arguments: shadowJar
- name: Nexus Repo Publish
uses: sonatype-nexus-community/nexus-repo-github-action@master
- name: Release
uses: marvinpinto/action-automatic-releases@latest
with:
serverUrl: https://gradle.phoenix.is-a.dev
username: admin
password: ${{ secrets.password }}
format: maven2
repository: maven-releases
coordinates: groupId=net.phoenix artifactId=eventemitter version=${{ env.NEXT_RELEASE_VERSION }}
assets: extension=jar
filename: /build/libs/EventEmitter.jar
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ env.NEXT_RELEASE_VERSION }}
prerelease: false
title: ${{ env.NEXT_RELEASE_VERSION }}
files: |
LICENSE.txt
./build/libs/EventEmitter.jar
17 changes: 7 additions & 10 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,35 @@ It creates "channels" which can be fired events upon. You can assign each callba
```xml
<repositories>
<repository>
<id>gradle</id>
<name>gradle</name>
<url>https://gradle.phoenix.is-a.dev</url>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>


<dependency>
<groupId>net.phoenix</groupId>
<groupId>com.github.phoenix</groupId>
<artifactId>eventemitter</artifactId>
<version>LATEST</version>
</dependency>
```
### Gradle Groovy
```groovy
repositories {
maven {
url "https://gradle.phoenix.is-a.dev/repository/gradle/"
}
maven {url 'https://jitpack.io'}
}
dependencies {
implementation "net.phoenix:eventemitter:+"
implementation "com.github.phoenix:eventemitter:+"
}
```
### Gradle Kotlin
```kotlin
repositories {
mavenCentral()
maven(url = "https://gradle.phoenix.is-a.dev/repository/gradle/")
maven(url = "https://jitpack.io")
}
dependencies {
implementation("net.phoenix:eventemitter:+")
implementation("com.github.phoenix:eventemitter:+")
}
```
## Using it
Expand Down

0 comments on commit d320a17

Please sign in to comment.