-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maven publish in build, added gradle dependency
- Loading branch information
Showing
5 changed files
with
52 additions
and
17 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 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 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
org.gradle.jvmargs=-Xms1G -Xmx3G | ||
org.gradle.parallel=true | ||
org.gradle.caching=true | ||
|
||
libVersion=0.1.0 | ||
kotlinVersion=1.3.50 | ||
gdxVersion=1.9.10 | ||
ktxVersion=1.9.10-b1 | ||
junitVersion=4.12 |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
plugins { | ||
kotlin("jvm") | ||
`maven-publish` | ||
signing | ||
} | ||
|
||
dependencies { | ||
|
@@ -20,6 +21,7 @@ java { | |
|
||
sourceSets { | ||
main { | ||
// This is needed to keep shader files in classpath. | ||
resources.srcDir("src/main/java") | ||
} | ||
} | ||
|
@@ -40,28 +42,52 @@ tasks.register<Jar>("javadocJar") { | |
publishing { | ||
publications { | ||
create<MavenPublication>("maven") { | ||
val libVersion: String by project | ||
groupId = "com.maltaisn" | ||
artifactId = "msdfgdx" | ||
version = rootProject.extra["libVersion"] as String | ||
artifactId = "msdf-gdx" | ||
version = libVersion | ||
|
||
pom { | ||
name.set("Card game") | ||
description.set("Card game base application") | ||
name.set("msdf-gdx") | ||
description.set("Provides lightweight utilities to draw MSDF text on LibGDX.") | ||
url.set("https://github.com/maltaisn/msdf-gdx") | ||
licenses { | ||
license { | ||
name.set("The Apache License, Version 2.0") | ||
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") | ||
distribution.set("repo") | ||
} | ||
} | ||
developers { | ||
developer { | ||
id.set("maltaisn") | ||
} | ||
} | ||
scm { | ||
url.set("https://github.com/maltaisn/msdf-gdx") | ||
connection.set("scm:git:git://github.com/maltaisn/msdf-gdx.git") | ||
developerConnection.set("scm:git:ssh://[email protected]:maltaisn/msdf-gdx.git") | ||
} | ||
} | ||
|
||
from(components["java"]) | ||
artifact(tasks["sourcesJar"]) | ||
//artifact(tasks["javadocJar"]) | ||
artifact(tasks["javadocJar"]) | ||
} | ||
} | ||
repositories { | ||
val ossrhUsername: String by project | ||
val ossrhPassword: String by project | ||
maven { | ||
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/") | ||
credentials { | ||
this.username = ossrhUsername | ||
this.password = ossrhPassword | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
sign(publishing.publications["maven"]) | ||
} |
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