commit 6b8553efaf451f3ef3b78b2b4fa058394a064a9b Author: Michael Jerger Date: Fri May 19 16:01:33 2023 +0200 initial diff --git a/build.py b/build.py new file mode 100644 index 0000000..0225bf4 --- /dev/null +++ b/build.py @@ -0,0 +1,43 @@ +from os import environ +from pybuilder.core import task, init +from ddadevops import * + +name = "buildtest" +MODULE = "release" +PROJECT_ROOT_PATH = "." + +class MyBuild(ReleaseMixin): + pass + + +@init +def initialize(project): + + input = { + "name": name, + "module": MODULE, + "stage": "notused", + "project_root_path": PROJECT_ROOT_PATH, + "build_types": [], + "mixin_types": ["RELEASE"], + "release_type": "MINOR", + "release_primary_build_file": "project.clj", + "release_secondary_build_file": ["package.json"], + } + + project.build_depends_on("ddadevops>=4.0.0-dev") + + build = MyBuild(project, input) + build.initialize_build_dir() + + +@task +def prepare_release(project): + build = get_devops_build(project) + build.prepare_release() + + +@task +def after_publish(project): + build = get_devops_build(project) + build.tag_bump_and_push_release() diff --git a/package.json b/package.json new file mode 100644 index 0000000..b80f25c --- /dev/null +++ b/package.json @@ -0,0 +1,33 @@ +{ + "name": "c4k-jira", + "description": "Generate c4k yaml for a jira deployment.", + "author": "meissa GmbH", + "version": "0.1.0-SNAPSHOT", + "homepage": "https://gitlab.com/domaindrivenarchitecture/c4k-jira#readme", + "repository": "https://www.npmjs.com/package/c4k-jira", + "license": "APACHE2", + "main": "c4k-jira.js", + "bin": { + "c4k-jira": "./c4k-jira.js" + }, + "keywords": [ + "cljs", + "jira", + "k8s", + "c4k", + "deployment", + "yaml", + "convention4kubernetes" + ], + "bugs": { + "url": "https://gitlab.com/domaindrivenarchitecture/c4k-jira/issues" + }, + "dependencies": { + "js-base64": "^3.6.1", + "js-yaml": "^4.0.0" + }, + "devDependencies": { + "shadow-cljs": "^2.11.18", + "source-map-support": "^0.5.19" + } +} diff --git a/project.clj b/project.clj new file mode 100644 index 0000000..eaef749 --- /dev/null +++ b/project.clj @@ -0,0 +1,49 @@ +(defproject org.domaindrivenarchitecture/c4k-jira "0.1.0-SNAPSHOT" + :description "jira c4k-installation package" + :url "https://domaindrivenarchitecture.org" + :license {:name "Apache License, Version 2.0" + :url "https://www.apache.org/licenses/LICENSE-2.0.html"} + :dependencies [[org.clojure/clojure "0.1.0"] + [org.clojure/tools.reader "0.1.0"] + [org.domaindrivenarchitecture/c4k-common-clj "0.1.0"] + [hickory "0.1.0" :exclusions [viebel/codox-klipse-theme]]] + :target-path "target/%s/" + :source-paths ["src/main/cljc" + "src/main/clj"] + :resource-paths ["src/main/resources"] + :repositories [["snapshots" :clojars] + ["releases" :clojars]] + :deploy-repositories [["snapshots" {:sign-releases false :url "https://clojars.org/repo"}] + ["releases" {:sign-releases false :url "https://clojars.org/repo"}]] + :profiles {:test {:test-paths ["src/test/cljc"] + :resource-paths ["src/test/resources"] + :dependencies [[dda/data-test "0.1.0"]]} + :dev {:plugins [[lein-shell "0.1.0"]]} + :uberjar {:aot :all + :main dda.c4k-jira.uberjar + :uberjar-name "c4k-jira-standalone.jar" + :dependencies [[org.clojure/tools.cli "0.1.0"] + [ch.qos.logback/logback-classic "0.1.0" + :exclusions [com.sun.mail/javax.mail]] + [org.slf4j/jcl-over-slf4j "0.1.0"]]}} + :release-tasks [["test"] + ["vcs" "assert-committed"] + ["change" "version" "leiningen.release/bump-version" "release"] + ["vcs" "commit"] + ["vcs" "tag" "v" "--no-sign"] + ["change" "version" "leiningen.release/bump-version"]] + :aliases {"native" ["shell" + "native-image" + "--report-unsupported-elements-at-runtime" + "--initialize-at-build-time" + "-jar" "target/uberjar/c4k-jira-standalone.jar" + "-H:ResourceConfigurationFiles=graalvm-resource-config.json" + "-H:Log=registerResource" + "-H:Name=target/graalvm/${:name}"] + "inst" ["shell" "sudo" + "install" + "-m=755" + "target/uberjar/c4k-jira-standalone.jar" + "/usr/local/bin/c4k-jira-standalone.jar"]}) +one.jar"]}) +.jar"]})