Commit 6115db9c authored by Christine Köhn's avatar Christine Köhn

removed config for upload, DepTree requests correct feature for PPC referent

parent fef004ce
......@@ -6,14 +6,13 @@ plugins {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'application'
apply plugin: 'signing'
mainClassName = "io.gitlab.nats.deptreeviz.ConllToSVG"
group="io.gitlab.nats"
version gitVersion()
version gitVersion()
repositories {
mavenCentral()
......@@ -38,72 +37,3 @@ task javadocJar(type: Jar) {
artifacts {
archives javadocJar, sourcesJar
}
// Notes: signing with gpg2 needs some work:
// gpg --homedir ~/.gnupg-software-signing --full-gen-key
// gpg --homedir ~/.gnupg-software-signing --export-key XXXXXXX > secring.gpg
// get short id:
// gpg --homedir ~/.gnupg-software-signing --list-secret-keys --keyid-format short
// then set everything in ~/.gradle/gradle.properties:
// signing.keyId=8AAA8FD9
// signing.secretKeyRingFile=/home/arne/.gnupg-software-signing/secring.gpg
// signing.password=
signing {
sign configurations.archives
}
// don't have zip and tar files around for upload
configurations.archives.with {
artifacts.remove artifacts.find { it.archiveTask.is distZip }
artifacts.remove artifacts.find { it.archiveTask.is distTar }
}
// ossrhPassword and ossrhUsername are defined in ~/.gradle/gradle.properties
// set default values if they are not defined.
if (!project.hasProperty("ossrhUsername")) {
ext.ossrhUsername = "empty"
}
if (!project.hasProperty("ossrhPassword")) {
ext.ossrhPassword = "empty"
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
packaging 'jar'
name 'deptreeviz'
description 'a dependency tree visualization and editing library'
url "https://gitlab.com/nats/deptreeviz"
scm {
url "https://gitlab.com/nats/deptreeviz"
connection "scm:git:https://gitlab.com/nats/deptreeviz.git"
developerConnection "scm:git:git@gitlab.com:nats/deptreeviz.git"
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/license/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'akoehn'
name 'Arne Köhn'
email 'arne@chark.eu'
}
}
}
}
}
}
......@@ -322,8 +322,7 @@ public class DepTree<T extends ParseInterface<E>,E extends WordInterface> implem
}
private String getReferent(DepTreeNode node) {
// TODO see getCat above
return "Referent_" + node.getIndex();
return getDecParse().getWords().get(node.getIndex()).getFeature("ppcReferent");
}
public void setLevels(ArrayList<String> levels) {
this._levels = levels;
......
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