Skip to content

Commit

Permalink
Improve readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
BigTows committed Dec 14, 2022
1 parent eae701a commit aff393e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 27 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ jobs:
uses: gradle/[email protected]
with:
arguments: test
- name: grep version
run: |
./gradlew properties | grep "version:" | awk '{print $2}'
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,14 @@ Import into your plugin one dependency:

```groovy
repositories {
maven {
name = "CustomItemsRepository"
url = uri("https://maven.pkg.github.com/ZendalMinecraft/CustomItems")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
maven {
name = 'CodeMC'
url = 'https://repo.codemc.org/repository/maven-public/'
}
}
dependencies {
compile 'org.zendal:customitems:1.0'
compileOnly 'org.zendal.customitems:CustomItems:1.0.3' //current version
}
```

Expand Down
20 changes: 3 additions & 17 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,10 @@ java {

publishing {
repositories {
// maven {
// name = "GitHubPackages"
// url = uri("https://maven.pkg.github.com/ZendalMinecraft/CustomItems")
// credentials {
// username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
// password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
// }
// }
maven {
def snapshotUrl = "https://repo.codemc.io/repository/maven-snapshots/"
def releaseUrl = "https://repo.codemc.io/repository/maven-releases/"

// You can also directly set the URL if you don't want to publish snapshots.
url = project.version.endsWith("SNAPSHOT") ? snapshotUrl : releaseUrl

// GRADLE_PROJECT_MAVEN_USERNAME and GRADLE_PROJECT_MAVEN_PASSWORD are the variables you defined in the previous section.
def mavenUsername = System.getenv("GRADLE_PROJECT_MAVEN_USERNAME") ? System.getenv("GRADLE_PROJECT_MAVEN_USERNAME") : null
def mavenPassword = System.getenv("GRADLE_PROJECT_MAVEN_PASSWORD") ? System.getenv("GRADLE_PROJECT_MAVEN_PASSWORD") : null
url = "https://repo.codemc.io/repository/maven-releases/"
def mavenUsername = System.getenv("GRADLE_PROJECT_MAVEN_USERNAME") ?: null
def mavenPassword = System.getenv("GRADLE_PROJECT_MAVEN_PASSWORD") ?: null

if (mavenUsername != null && mavenPassword != null) {
credentials {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
group=org.zendal.customitems
version=1.0.2
version=1.0.3
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.zendal.customitems.item.AbstractCustomItemStack;

/**
* Little bit modified InventoryClickEvent, invoke when player clicked on inventory and this clicked item is CustomItemStack.
* A little modified InventoryClickEvent, invoke when player clicked on inventory and this clicked item is CustomItemStack.
* Warning! working okay only for survival or adventure mode, In creative mode u got dupe bug in your inventory
*/
public final class PlayerClickOnCustomItemStackInInventoryEvent extends InventoryClickEvent implements Cancellable {
Expand Down

0 comments on commit aff393e

Please sign in to comment.