Skip to content

Commit 8fa601d

Browse files
Publish some KernelF runtimes
1 parent 45b8b4e commit 8fa601d

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

build.gradle

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,86 @@ publishing {
330330
}
331331
}
332332
}
333+
334+
def runtimesDir = new File(artifactsDir, 'org.iets3.opensource/org.iets3.core.os/languages/iets3.core.os')
335+
336+
'org.iets3.core.expr.base.shared.runtime'(MavenPublication) {
337+
groupId 'org.iets3.core.expr.base.shared'
338+
artifactId 'shared-runtime'
339+
artifact(new File(runtimesDir, 'org.iets3.core.expr.base.shared.runtime.jar')) {
340+
builtBy buildLanguages
341+
}
342+
artifact(new File(runtimesDir, 'org.iets3.core.expr.base.shared.runtime-src.jar')) {
343+
builtBy buildLanguages
344+
classifier 'sources'
345+
}
346+
}
347+
348+
'org.iets3.core.expr.simpleTypes.runtime'(MavenPublication) {
349+
// GitHub Packages refuse uppercase artifactId (not sure about groupId) so use lower case here
350+
groupId 'org.iets3.core.expr.simpletypes'
351+
artifactId 'simpletypes-runtime'
352+
artifact(new File(runtimesDir, 'org.iets3.core.expr.simpleTypes.runtime.jar')) {
353+
builtBy buildLanguages
354+
}
355+
artifact(new File(runtimesDir, 'org.iets3.core.expr.simpleTypes.runtime-src.jar')) {
356+
builtBy buildLanguages
357+
classifier 'sources'
358+
}
359+
360+
pom.withXml {
361+
def deps = asNode().appendNode('dependencies')
362+
363+
// depends on shared
364+
def dep = deps.appendNode('dependency')
365+
dep.appendNode('groupId', 'org.iets3.core.expr.base.shared')
366+
dep.appendNode('artifactId', 'shared-runtime')
367+
dep.appendNode('version', project.version)
368+
}
369+
}
370+
371+
'org.iets3.core.expr.datetime.runtime'(MavenPublication) {
372+
groupId 'org.iets3.core.expr.datetime'
373+
artifactId 'datetime-runtime'
374+
artifact(new File(runtimesDir, 'org.iets3.core.expr.datetime.runtime.jar')) {
375+
builtBy buildLanguages
376+
}
377+
artifact(new File(runtimesDir, 'org.iets3.core.expr.datetime.runtime-src.jar')) {
378+
builtBy buildLanguages
379+
classifier 'sources'
380+
}
381+
382+
pom.withXml {
383+
def deps = asNode().appendNode('dependencies')
384+
385+
// depends on shared
386+
def dep = deps.appendNode('dependency')
387+
dep.appendNode('groupId', 'org.iets3.core.expr.base.shared')
388+
dep.appendNode('artifactId', 'shared-runtime')
389+
dep.appendNode('version', project.version)
390+
}
391+
}
392+
393+
'org.iets3.core.expr.temporal.runtime'(MavenPublication) {
394+
groupId 'org.iets3.core.expr.temporal'
395+
artifactId 'temporal-runtime'
396+
artifact(new File(runtimesDir, 'org.iets3.core.expr.temporal.runtime.jar')) {
397+
builtBy buildLanguages
398+
}
399+
artifact(new File(runtimesDir, 'org.iets3.core.expr.temporal.runtime-src.jar')) {
400+
builtBy buildLanguages
401+
classifier 'sources'
402+
}
403+
pom.withXml {
404+
def deps = asNode().appendNode('dependencies')
405+
406+
// depends on datetime
407+
def dep = deps.appendNode('dependency')
408+
dep.appendNode('groupId', 'org.iets3.core.expr.datetime')
409+
dep.appendNode('artifactId', 'datetime-runtime')
410+
dep.appendNode('version', project.version)
411+
}
412+
}
333413
}
334414
}
335415

0 commit comments

Comments
 (0)