-
Notifications
You must be signed in to change notification settings - Fork 0
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
87 additions
and
400 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
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,88 +1,19 @@ | ||
apply plugin: "java" | ||
apply plugin: 'java-library' | ||
apply plugin: 'signing' | ||
|
||
def module_name = "jParser-core" | ||
|
||
configurations { | ||
includeDep | ||
api.extendsFrom includeDep | ||
} | ||
def module_name = "core" | ||
|
||
dependencies { | ||
api project(":jParser:idl") | ||
includeDep "com.github.javaparser:javaparser-symbol-solver-core:$project.javaparserVersion" | ||
includeDep "com.github.javaparser:javaparser-core:$project.javaparserVersion" | ||
} | ||
|
||
task fromClasses(type: Jar) { | ||
from(sourceSets.main.output) { | ||
} | ||
} | ||
|
||
task javadocJar(type: Jar) { | ||
archiveClassifier.set("javadoc") | ||
from javadoc | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
archiveClassifier.set("sources") | ||
from sourceSets.main.allSource | ||
} | ||
|
||
javadoc { | ||
options.encoding = 'UTF-8' | ||
options.addStringOption('Xdoclint:none', '-quiet') | ||
api "com.github.javaparser:javaparser-symbol-solver-core:$project.javaparserVersion" | ||
api "com.github.javaparser:javaparser-core:$project.javaparserVersion" | ||
} | ||
|
||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
version project.jParserVersion + project.jParserType | ||
project.version = project.jParserVersion + project.jParserType | ||
artifactId module_name | ||
artifact fromClasses | ||
artifact javadocJar | ||
artifact sourcesJar | ||
|
||
pom { | ||
name = "jParser" | ||
description = "Java code parser" | ||
url = "http://github.com/xpenatan/jParser" | ||
developers { | ||
developer { | ||
id = "Xpe" | ||
name = "Natan" | ||
} | ||
} | ||
scm { | ||
connection = "scm:git:git://github.com/xpenatan/jParser.git" | ||
developerConnection = "scm:git:ssh://github.com/xpenatan/jParser.git" | ||
url = "http://github.com/xpenatan/jParser/tree/master" | ||
} | ||
licenses { | ||
license { | ||
name = "The Apache License, Version 2.0" | ||
url = "https://www.apache.org/licenses/LICENSE-2.0.txt" | ||
} | ||
} | ||
withXml { | ||
def dependenciesNode = asNode().appendNode('dependencies') | ||
configurations.includeDep.allDependencies.each { | ||
def dependencyNode = dependenciesNode.appendNode('dependency') | ||
dependencyNode.appendNode('groupId', it.group) | ||
dependencyNode.appendNode('artifactId', it.name) | ||
dependencyNode.appendNode('version', it.version) | ||
} | ||
} | ||
} | ||
artifactId = module_name | ||
from components.java | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
def signingKey = System.getenv("signingKey") | ||
def signingPassword = System.getenv("signingPassword") | ||
useInMemoryPgpKeys(signingKey, signingPassword) | ||
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
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,96 +1,22 @@ | ||
apply plugin: "java" | ||
apply plugin: 'java-library' | ||
apply plugin: 'signing' | ||
|
||
def module_name = "jParser-cpp" | ||
|
||
configurations { | ||
includeDep | ||
implementation.extendsFrom includeDep | ||
} | ||
def module_name = "cpp" | ||
|
||
dependencies { | ||
api project(":jParser:idl") | ||
implementation project(":jParser:core") | ||
includeDep "com.badlogicgames.gdx:gdx-jnigen:$project.jniGenVersion" | ||
implementation "com.badlogicgames.gdx:gdx-jnigen:$project.jniGenVersion" | ||
|
||
testImplementation project(":jParser:loader") | ||
testImplementation "junit:junit:$project.jUnitVersion" | ||
} | ||
|
||
task fromClasses(type: Jar) { | ||
from(sourceSets.main.output) { | ||
} | ||
} | ||
|
||
task javadocJar(type: Jar) { | ||
archiveClassifier.set("javadoc") | ||
from javadoc | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
archiveClassifier.set("sources") | ||
from sourceSets.main.allSource | ||
} | ||
|
||
javadoc { | ||
options.encoding = 'UTF-8' | ||
options.addStringOption('Xdoclint:none', '-quiet') | ||
} | ||
|
||
configurations { | ||
provided | ||
implementation.extendsFrom provided | ||
} | ||
|
||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
version project.jParserVersion + project.jParserType | ||
project.version = project.jParserVersion + project.jParserType | ||
artifactId module_name | ||
artifact fromClasses | ||
artifact javadocJar | ||
artifact sourcesJar | ||
|
||
pom { | ||
name = "jParser cpp" | ||
description = "Java code parser" | ||
url = "http://github.com/xpenatan/jParser" | ||
developers { | ||
developer { | ||
id = "Xpe" | ||
name = "Natan" | ||
} | ||
} | ||
scm { | ||
connection = "scm:git:git://github.com/xpenatan/jParser.git" | ||
developerConnection = "scm:git:ssh://github.com/xpenatan/jParser.git" | ||
url = "http://github.com/xpenatan/jParser/tree/master" | ||
} | ||
licenses { | ||
license { | ||
name = "The Apache License, Version 2.0" | ||
url = "https://www.apache.org/licenses/LICENSE-2.0.txt" | ||
} | ||
} | ||
withXml { | ||
def dependencies = asNode().appendNode('dependencies') | ||
configurations.includeDep.allDependencies.each { | ||
def dependencyNode = dependencies.appendNode('dependency') | ||
dependencyNode.appendNode('groupId', it.group) | ||
dependencyNode.appendNode('artifactId', it.name) | ||
dependencyNode.appendNode('version', it.version) | ||
} | ||
} | ||
} | ||
artifactId = module_name | ||
from components.java | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
def signingKey = System.getenv("signingKey") | ||
def signingPassword = System.getenv("signingPassword") | ||
useInMemoryPgpKeys(signingKey, signingPassword) | ||
sign publishing.publications.maven | ||
} |
Oops, something went wrong.