-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepared for maven publishing.
- Loading branch information
Showing
588 changed files
with
4,973 additions
and
4,185 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,4 @@ venv/ | |
# Windows | ||
Thumbs.db | ||
/.recommenders/ | ||
/key.gpg |
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,6 +4,7 @@ plugins { | |
id 'com.github.johnrengelman.shadow' version '5.1.0' | ||
id 'java' | ||
id 'maven-publish' | ||
id 'signing' | ||
id 'idea' | ||
id 'cpp' | ||
} | ||
|
@@ -25,26 +26,61 @@ dependencies { | |
testCompile 'org.swinglabs:swingx:1.6.1' | ||
} | ||
|
||
|
||
group = 'com.weis' | ||
version = '1.3' | ||
|
||
task sourceJar(type: Jar, dependsOn: classes) { | ||
classifier 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
|
||
artifacts { | ||
archives jar | ||
archives sourceJar | ||
} | ||
|
||
signing { | ||
sign configurations.archives | ||
} | ||
|
||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
mavenJava(MavenPublication) { | ||
customizePom(pom) | ||
groupId = 'com.github.weisj' | ||
artifactId 'darklaf' | ||
version = '1.3' | ||
|
||
from components.java | ||
artifact tasks.sourceJar | ||
|
||
// create the sign pom artifact | ||
pom.withXml { | ||
def pomFile = file("${project.buildDir}/generated-pom.xml") | ||
writeTo(pomFile) | ||
def pomAscFile = signing.sign(pomFile).signatureFiles[0] | ||
artifact(pomAscFile) { | ||
classifier = null | ||
extension = 'pom.asc' | ||
} | ||
} | ||
|
||
artifact(sourceJar) { | ||
classifier = 'sources' | ||
} | ||
|
||
// create the signed artifacts | ||
project.tasks.signArchives.signatureFiles.each { | ||
artifact(it) { | ||
def matcher = it.file =~ /-(sources|javadoc)\.jar\.asc$/ | ||
if (matcher.find()) { | ||
classifier = matcher.group(1) | ||
} else { | ||
classifier = null | ||
} | ||
extension = 'jar.asc' | ||
} | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
name 'deploy' | ||
url deployRepoUrl | ||
credentials { | ||
username = deployRepoUsername | ||
|
@@ -54,26 +90,81 @@ publishing { | |
} | ||
} | ||
|
||
println "Building on OS: " + System.properties['os.name'] | ||
println "Using JDK: " + System.properties['java.home'] | ||
def customizePom(pom) { | ||
pom.withXml { | ||
def root = asNode() | ||
|
||
model { | ||
platforms { | ||
x86 { | ||
architecture 'x86' | ||
// eliminate test-scoped dependencies (no need in maven central POMs) | ||
root.dependencies.removeAll { dep -> | ||
dep.scope == "test" | ||
} | ||
x64 { | ||
architecture 'x86_64' | ||
|
||
// add all items necessary for maven central publication | ||
root.children().last() + { | ||
resolveStrategy = DELEGATE_FIRST | ||
|
||
description 'A themeable Look and Feel for java swing.' | ||
name 'Darklaf' | ||
url 'https://github.com/mautini/schemaorg-java' | ||
organization { | ||
name 'com.github.weisj' | ||
url 'https://github.com/weisj' | ||
} | ||
issueManagement { | ||
system 'GitHub' | ||
url 'https://github.com/weisJ/darklaf/issues' | ||
} | ||
licenses { | ||
license { | ||
name 'MIT' | ||
url 'https://github.com/weisJ/darklaf/blob/master/licence/LICENSE' | ||
distribution 'repo' | ||
} | ||
} | ||
scm { | ||
url 'https://github.com/weisJ/darklaf' | ||
connection 'scm:git:git://github.com/weisJ/darklaf.git' | ||
developerConnection 'scm:git:ssh://[email protected]:weisj/darklaf.git' | ||
} | ||
developers { | ||
developer { | ||
name 'Jannis Weis' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
model { | ||
tasks.generatePomFileForMavenJavaPublication { | ||
destination = file("$buildDir/generated-pom.xml") | ||
} | ||
tasks.publishMavenJavaPublicationToMavenLocal { | ||
dependsOn project.tasks.signArchives | ||
} | ||
tasks.publishMavenJavaPublicationToMavenRepository { | ||
dependsOn project.tasks.signArchives | ||
} | ||
} | ||
|
||
println "Building on OS: " + System.properties['os.name'] | ||
println "Using JDK: " + System.properties['java.home'] | ||
|
||
|
||
compileJava { | ||
sourceCompatibility = 11 | ||
targetCompatibility = 11 | ||
} | ||
|
||
model { | ||
platforms { | ||
x86 { | ||
architecture 'x86' | ||
} | ||
x64 { | ||
architecture 'x86_64' | ||
} | ||
} | ||
components { | ||
jniplatform(NativeLibrarySpec) { | ||
targetPlatform "x86" | ||
|
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
77 changes: 77 additions & 0 deletions
77
src/jniplatform/cpp/com_github_weisj_darklaf_platform_windows_JNIDecorations.h
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.