-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
45 additions
and
209 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,18 @@ | ||
vgo_version=2.0.2 | ||
|
||
org.gradle.jvmargs=-Xmx2g -XX:+UseParallelGC | ||
|
||
GROUP=com.jzbrooks | ||
VERSION_NAME=2.0.2 | ||
|
||
POM_URL=https://github.com/jzbrooks/vgo/ | ||
|
||
POM_LICENSE_NAME=MIT License | ||
POM_LICENSE_URL=https://github.com/jzbrooks/vgo/blob/master/LICENSE | ||
|
||
POM_SCM_URL=https://github.com/jzbrooks/vgo/tree/master | ||
POM_SCM_CONNECTION=scm:git:git:github.com/jzbrooks/vgo.git | ||
POM_SCM_DEV_CONNECTION=scm:git:ssh://github.com/jzbrooks/vgo.git | ||
|
||
POM_DEVELOPER_ID=jzbrooks | ||
POM_DEVELOPER_NAME=Justin Brooks | ||
POM_DEVELOPER_URL=https://github.com/jzbrooks | ||
POM_DEVELOPER_EMAIL[email protected] |
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,7 +1,7 @@ | ||
plugins { | ||
id("org.jlleitschuh.gradle.ktlint") | ||
id("org.jetbrains.kotlin.jvm") | ||
id("maven-publish") | ||
id("signing") | ||
id("com.vanniktech.maven.publish") | ||
} | ||
|
||
dependencies { | ||
|
@@ -22,58 +22,3 @@ tasks { | |
from(this@tasks["javadoc"]) | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("release") { | ||
artifactId = "vgo-core" | ||
|
||
artifact(tasks["sourcesJar"]) | ||
artifact(tasks["javadocJar"]) | ||
from(components["kotlin"]) | ||
|
||
@Suppress("UnstableApiUsage") | ||
pom { | ||
name.set("vgo-core") | ||
description.set("vgo-core is a library for optimizing vector artwork files.") | ||
url.set("https://github.com/jzbrooks/vgo/") | ||
|
||
licenses { | ||
license { | ||
name.set("MIT License") | ||
url.set("https://github.com/jzbrooks/vgo/blob/master/LICENSE") | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id.set("jzbrooks") | ||
name.set("Justin Brooks") | ||
email.set("[email protected]") | ||
} | ||
} | ||
|
||
scm { | ||
connection.set("scm:git:github.com/jzbrooks/vgo.git") | ||
developerConnection.set("scm:git:ssh://github.com/jzbrooks/vgo.git") | ||
url.set("https://github.com/jzbrooks/vgo/tree/master") | ||
} | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
maven { | ||
name = "sonatype" | ||
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/") | ||
credentials { | ||
username = System.getenv("OSSRH_USERNAME") | ||
password = System.getenv("OSSRH_PASSWORD") | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
sign(publishing.publications) | ||
} |
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,3 @@ | ||
POM_ARTIFACT_ID=vgo-core | ||
POM_NAME=vgo-core | ||
POM_DESCRIPTION=vgo-core is a library for optimizing vector artwork files. |
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,8 +1,8 @@ | ||
plugins { | ||
id("org.jlleitschuh.gradle.ktlint") | ||
id("org.jetbrains.kotlin.jvm") | ||
id("java-gradle-plugin") | ||
id("maven-publish") | ||
id("signing") | ||
id("com.vanniktech.maven.publish") | ||
id("org.gradle.kotlin.kotlin-dsl") version "2.1.4" | ||
} | ||
|
||
|
@@ -35,58 +35,3 @@ tasks { | |
from(this@tasks["javadoc"]) | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("release") { | ||
artifactId = "vgo-plugin" | ||
|
||
artifact(tasks["sourcesJar"]) | ||
artifact(tasks["javadocJar"]) | ||
from(components["kotlin"]) | ||
|
||
@Suppress("UnstableApiUsage") | ||
pom { | ||
name.set("vgo-plugin") | ||
description.set("vgo is a gradle plugin for optimizing vector artwork files that helps ensure a compact representation without compromising quality.") | ||
url.set("https://github.com/jzbrooks/vgo/") | ||
|
||
licenses { | ||
license { | ||
name.set("MIT License") | ||
url.set("https://github.com/jzbrooks/vgo/blob/master/LICENSE") | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id.set("jzbrooks") | ||
name.set("Justin Brooks") | ||
email.set("[email protected]") | ||
} | ||
} | ||
|
||
scm { | ||
connection.set("scm:git:github.com/jzbrooks/vgo.git") | ||
developerConnection.set("scm:git:ssh://github.com/jzbrooks/vgo.git") | ||
url.set("https://github.com/jzbrooks/vgo/tree/master") | ||
} | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
maven { | ||
name = "sonatype" | ||
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/") | ||
credentials { | ||
username = System.getenv("OSSRH_USERNAME") | ||
password = System.getenv("OSSRH_PASSWORD") | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
sign(publishing.publications) | ||
} |
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,6 @@ | ||
POM_ARTIFACT_ID=vgo-plugin | ||
POM_NAME=vgo-plugin | ||
POM_DESCRIPTION=vgo is a gradle plugin for optimizing vector artwork files that helps ensure a compact representation without compromising quality. | ||
|
||
|
||
|
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 |
---|---|---|
|
@@ -4,9 +4,9 @@ import java.nio.file.Files | |
import java.nio.file.Paths | ||
|
||
plugins { | ||
id("org.jlleitschuh.gradle.ktlint") | ||
id("org.jetbrains.kotlin.jvm") | ||
id("maven-publish") | ||
id("signing") | ||
id("com.vanniktech.maven.publish") | ||
} | ||
|
||
sourceSets { | ||
|
@@ -33,10 +33,9 @@ tasks { | |
|
||
jar { | ||
dependsOn(configurations.runtimeClasspath) | ||
|
||
manifest { | ||
attributes["Main-Class"] = "com.jzbrooks.vgo.Application" | ||
attributes["Bundle-Version"] = project.version | ||
attributes["Bundle-Version"] = project.properties["VERSION_NAME"] | ||
} | ||
|
||
val sourceClasses = sourceSets.main.get().output.classesDirs | ||
|
@@ -59,6 +58,8 @@ tasks { | |
} | ||
|
||
val generateConstants by registering { | ||
finalizedBy("compileKotlin") | ||
|
||
outputs.files("$projectDir/src/generated/kotlin/com/jzbrooks/BuildConstants.kt") | ||
|
||
doLast { | ||
|
@@ -72,13 +73,12 @@ tasks { | |
""" | ||
|package com.jzbrooks | ||
| | ||
|object BuildConstants { | ||
|internal object BuildConstants { | ||
""".trimMargin() | ||
) | ||
|
||
val vgoProperties = project.properties | ||
.filter { it.key.startsWith("vgo_") } | ||
.mapKeys { it.key.removePrefix("vgo_") } | ||
.filterKeys { it == "VERSION_NAME" } | ||
|
||
for (property in vgoProperties) { | ||
append(" const val ") | ||
|
@@ -159,58 +159,3 @@ tasks { | |
from(this@tasks["javadoc"]) | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("release") { | ||
artifactId = "vgo" | ||
|
||
artifact(tasks["sourcesJar"]) | ||
artifact(tasks["javadocJar"]) | ||
from(components["kotlin"]) | ||
|
||
@Suppress("UnstableApiUsage") | ||
pom { | ||
name.set("vgo") | ||
description.set("vgo is a tool for optimizing vector artwork files that helps ensure your vector artwork is represented compactly without compromising quality.") | ||
url.set("https://github.com/jzbrooks/vgo/") | ||
|
||
licenses { | ||
license { | ||
name.set("MIT License") | ||
url.set("https://github.com/jzbrooks/vgo/blob/master/LICENSE") | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id.set("jzbrooks") | ||
name.set("Justin Brooks") | ||
email.set("[email protected]") | ||
} | ||
} | ||
|
||
scm { | ||
connection.set("scm:git:github.com/jzbrooks/vgo.git") | ||
developerConnection.set("scm:git:ssh://github.com/jzbrooks/vgo.git") | ||
url.set("https://github.com/jzbrooks/vgo/tree/master") | ||
} | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
maven { | ||
name = "sonatype" | ||
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/") | ||
credentials { | ||
username = System.getenv("OSSRH_USERNAME") | ||
password = System.getenv("OSSRH_PASSWORD") | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
sign(publishing.publications) | ||
} |
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,3 @@ | ||
POM_ARTIFACT_ID=vgo | ||
POM_NAME=vgo | ||
POM_DESCRIPTION=vgo is a tool for optimizing vector artwork files that helps ensure your vector artwork is represented compactly without compromising quality. |
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