Skip to content

Commit

Permalink
Merge pull request #55 from Displee/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Displee authored Jan 12, 2024
2 parents a0fb4ff + bd82a78 commit ec4c1bb
Show file tree
Hide file tree
Showing 22 changed files with 1,016 additions and 1,020 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This library is able to read this data, and write manipulated data back to the c

## Gradle
```
implementation 'com.displee:rs-cache-library:6.9'
implementation 'com.displee:rs-cache-library:7.0'
```
## Initialize your cache
```kotlin
Expand Down
105 changes: 0 additions & 105 deletions build.gradle

This file was deleted.

86 changes: 86 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
plugins {
kotlin("jvm") version "1.9.21"
`maven-publish`
signing
}

group = "com.displee"
version = "7.0"

description = "A library written in Kotlin used to read and write to all cache formats of RuneScape."

repositories {
mavenCentral()
}

dependencies {
implementation("com.github.jponge:lzma-java:1.3")
implementation("org.apache.ant:ant:1.10.11")
implementation("com.displee:disio:2.2")
testImplementation("junit:junit:4.13.1")
}

java {
withJavadocJar()
withSourcesJar()
}

val ossrhUsername: String by project
val ossrhPassword: String by project

publishing {
repositories {
maven {
val releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
val snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
credentials {
username = ossrhUsername
password = ossrhPassword
}
}
}
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])

pom {
name = rootProject.name
description = rootProject.description
url = "https://github.com/Displee/rs-cache-library"
packaging = "jar"
licenses {
license {
name = "MIT License"
url = "https://github.com/Displee/rs-cache-library/blob/master/LICENSE"
}
}
developers {
developer {
id = "Displee"
name = "Yassin Amhagi"
email = "displee@hotmail.com"
}
developer {
id = "Greg"
name = "Greg"
email = "greg@gregs.world"
}
}
scm {
connection = "scm:git:git://github.com/Displee/rs-cache-library.git"
developerConnection = "scm:git:ssh://git@github.com/Displee/rs-cache-library.git"
url = "https://github.com/Displee/rs-cache-library"
}
}
}
}
}

signing {
sign(publishing.publications["mavenJava"])
}

kotlin {
jvmToolchain(8)
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Tue May 19 01:09:51 CEST 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
Expand Down
Loading

0 comments on commit ec4c1bb

Please sign in to comment.