-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from Displee/dev
Dev
- Loading branch information
Showing
22 changed files
with
1,016 additions
and
1,020 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.