Commit 371a6ed9 authored by Stephanie Gawroriski's avatar Stephanie Gawroriski
Browse files

Base attempt at getting publishing working.

parent e5dd5ece
......@@ -2,7 +2,7 @@ group = "cc.squirreljme"
description = "SquirrelJME is a Java ME 8 Virtual Machine for embedded " +
"and Internet of Things devices. It has the ultimate goal of being " +
"99.9% compatible with the Java ME standard."
version = "0.3.0"
version = "0.3.0-SNAPSHOT"
// Virtual machine version ID
ext.squirreljmeVMVersion = "03"
......@@ -14,4 +14,4 @@ allprojects
mavenCentral()
jcenter()
}
}
\ No newline at end of file
}
......@@ -295,6 +295,10 @@ public final class SuiteVersion
// Trim whitespace
__v = __v.trim();
// Remove snapshot
if (__v.endsWith("-SNAPSHOT"))
__v = __v.substring(0, __v.length() - "-SNAPSHOT".length());
// Output array
int[] rv = new int[3];
......
......@@ -13,6 +13,7 @@ subprojects
apply plugin: "checkstyle"
apply plugin: "cc.squirreljme.plugin"
apply plugin: "maven-publish"
apply plugin: "signing"
// This may be needed later if Java 8 support goes away, can use Eclipse
// although things will be lost with this...
......@@ -41,14 +42,15 @@ subprojects
"squirreljme.syscallparam",
"squirreljme.syscallreturn" ]
// Include sources JAR in the build
// Include sources and JavaDocs!
withSourcesJar()
withJavadocJar()
}
// What to publish?
publishing {
publications {
maven(MavenPublication) {
mavenJava(MavenPublication) {
pom {
description = project.description
url = "https://squirreljme.cc/"
......@@ -93,6 +95,27 @@ subprojects
from components.java
}
}
// Where does the stuff go?
// https://central.sonatype.org/pages/gradle.html
repositories {
maven {
credentials {
username = project.properties["squirreljmeNexusUser"]
password = project.properties["squirreljmeNexusPassword"]
}
// Currently release to just snapshots
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
}
// Needed to publish
signing {
useGpgCmd()
sign publishing.publications.mavenJava
}
// Enable SquirrelJME Tests
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment