Skip to content

Commit

Permalink
Prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Jan 28, 2020
1 parent 53bd13f commit 67dab3c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ You can add the library by inserting the following in your `build.gradle` :
```gradle
repositories {
maven {
name = "Jitpack"
url = 'https://jitpack.io' }
name = "Ladysnake Libs"
url = 'https://dl.bintray.com/ladysnake/libs' }
}
maven {
name = "NerdHubMC"
Expand All @@ -54,6 +54,9 @@ repositories {
dependencies {
modImplementation "io.github.ladysnake:Impersonate:${impersonate_version}"
include "io.github.ladysnake:Impersonate:${impersonate_version}"
// Impersonate dependencies
include "com.github.NerdHubMC.Cardinal-Components-API:cardinal-components-base:${cca_version}"
include "com.github.NerdHubMC.Cardinal-Components-API:cardinal-components-entity:${cca_version}"
}
```

Expand Down
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ dependencies {
api "org.jetbrains:annotations:17.0.0"
modApi "com.github.NerdHubMC.Cardinal-Components-API:cardinal-components-base:${cca_version}"
modImplementation "com.github.NerdHubMC.Cardinal-Components-API:cardinal-components-entity:${cca_version}"
include "com.github.NerdHubMC.Cardinal-Components-API:cardinal-components-base:${cca_version}"
include "com.github.NerdHubMC.Cardinal-Components-API:cardinal-components-entity:${cca_version}"

compileOnly "org.jetbrains:annotations:${jb_annotations_version}"
compileOnly "org.apiguardian:apiguardian-api:${apiguardian_version}"
Expand Down Expand Up @@ -99,7 +101,14 @@ task remapTestmodJar(type: RemapJarTask, dependsOn: project.testmodJar) {
addNestedDependencies = false
}

task remapLibJar(type: RemapJarTask, dependsOn: project.jar) {
classifier = 'lib'
input = jar.archiveFile
addNestedDependencies = false
}

build.dependsOn(remapTestmodJar)
build.dependsOn(remapLibJar)

license {
header = rootProject.file("code_quality/${project.license_header}_HEADER.txt")
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ archives_base_name = Impersonate
owners = Ladysnake
license_header = LGPL
gpl_version = 3
curseforge_id = ;
curseforge_id = 360333
curseforge_versions = 1.15; 1.15.1; 1.15.2
cf_requirements = fabric-api
cf_embeddeds = cardinal-components
release_type = release
changelog_url = https://github.com/Ladysnake/Impersonate/blob/master/changelog.md
5 changes: 3 additions & 2 deletions release.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ publishing {
publications {
mavenJava(MavenPublication) {
// add all the jars that should be included when publishing to maven
artifact(remapJar) {
builtBy remapJar
artifact(remapLibJar) {
classifier ''
builtBy remapLibJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
Expand Down

0 comments on commit 67dab3c

Please sign in to comment.