Skip to content
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ ivoatexmeta.tex

# Misc
*.swp
/.idea/
/.gradle/
/build/
44 changes: 44 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
plugins {
id("net.ivoa.vo-dml.vodmltools") version "0.3.19"
`maven-publish`
application
}

group = "org.javastro.ivoa.dm"
version = "1.0-SNAPSHOT"

vodml {
vodmlDir.set(file("vo-dml"))
vodslDir.set(file("model"))
bindingFiles.setFrom(file("vo-dml/coord.vodml-binding.xml")
)

}
/* uncomment below to run the generation of vodml from vodsl automatically */
//tasks.named("vodmlJavaGenerate") {
// dependsOn("vodslToVodml")
//}

tasks.register("UmlToVodml", net.ivoa.vodml.gradle.plugin.XmiTask::class.java) {
xmiScript.set("xmi2vo-dml_Modelio3.7_UML2.4.1.xsl") // the conversion script
xmiFile.set(file("./model/coords_1.0_uml2p4p1.xmi")) //the UML XMI to convert
vodmlFile.set(file("./vo-dml/Coords-v1.0.vo-dml.xml")) // the output VO-DML file.
description = "convert UML to VO-DML"
}


dependencies {
api("org.javastro.ivoa.vo-dml:ivoa-base:1.0-SNAPSHOT") // IMPL using API so that it appears in transitive compile
}

publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}

application {
mainClass.set("Genschema")
}
22 changes: 22 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
rootProject.name = "coordinateDM"

pluginManagement {
repositories {
mavenLocal() // IMPL allow picking up from local - should be removed when publishing
gradlePluginPortal()
}
}

dependencyResolutionManagement {
repositories {
mavenLocal()
mavenCentral()
/*
add this repository to pick up the SNAPSHOT version of the IVOA base library - in the future when this
will not be necessary when this library is released as a non-SNAPSHOT version.
*/
maven {
url= uri("https://oss.sonatype.org/content/repositories/snapshots/")
}
}
}
11 changes: 11 additions & 0 deletions vo-dml/coord.vodml-binding.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<m:mappedModels xmlns:m="http://www.ivoa.net/xml/vodml-binding/v0.9.1">
<!-- ========================================
-->
<model>
<name>coords</name>
<file>Coords-v1.0.vo-dml.xml</file>
<java-package>org.ivoa.dm.stc.coords</java-package>
<xml-targetnamespace prefix="coord">http://ivoa.net/dm/models/vo-dml/xsd/stc/coords/</xml-targetnamespace>
</model>
</m:mappedModels>