Skip to content

Commit 3ab896d

Browse files
committed
v0.2.1
1 parent 37a8f4b commit 3ab896d

File tree

7 files changed

+148
-5
lines changed

7 files changed

+148
-5
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ tmp
66
.portal
77
.calva
88
.vscode
9-
.nrepl-port
9+
.nrepl-port
10+
11+
clojure-desktop-toolkit.jar

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
jar:
3+
clojure -X:jar :version '"0.2.1"'
4+
5+
deploy:
6+
env CLOJARS_USERNAME=coconutpalm CLOJARS_PASSWORD=${CLOJARS_PASSWORD} clj -X:deploy
7+
8+
ALL: jar deploy

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
> ***Returning joy to desktop application development!*** 😁
66
7-
*Version 0.0.2; initial public release; includes full SWT API support*
7+
8+
[![Clojars Project](https://img.shields.io/clojars/v/io.github.coconutpalm/clojure-desktop-toolkit.svg)](https://clojars.org/io.github.coconutpalm/clojure-desktop-toolkit)
9+
810

911
* **Upcoming version [New and Noteworthy](docs/new-and-noteworthy/version-0.2.0.md)**
1012
* **[Current documentation](docs/000-index.md)**

TODO.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# TODO
2+
3+
* Publish to Clojars
4+
* Publish RightTypes to Clojars
5+
* Publish skeleton application
6+
7+
* Generate cljdocs
8+
9+
* Clean up SWT.clj cruft; migrate examples elsewhere.
10+
11+
* Release Version 0.1.0 (0.2.0?)
12+
13+
* Announce in visual tools group
14+
* Announce on Clojurians
15+
* Announce on LinkedIn
16+
17+
* Register for sponsorships:
18+
* Github
19+
* Patreon
20+
* Substack
21+

build/build.clj

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
(ns build
2+
(:require [clojure.tools.build.api :as b]
3+
[org.corfield.build :as bb]
4+
[clojure.string :as str]))
5+
6+
(def scm-url "[email protected]:coconutpalm/clojure-desktop-toolkit.git")
7+
8+
(def lib 'com.kiranshila/cybermonday)
9+
(def version (format "0.4.%s" (b/git-count-revs nil)))
10+
11+
(defn sha
12+
[{:keys [dir path] :or {dir "."}}]
13+
(-> {:command-args (cond-> ["git" "rev-parse" "HEAD"]
14+
path (conj "--" path))
15+
:dir (.getPath (b/resolve-path dir))
16+
:out :capture}
17+
b/process
18+
:out
19+
str/trim))
20+
21+
(defn thinjar
22+
"Create thinjar"
23+
[opts]
24+
(-> opts
25+
(assoc :lib lib
26+
:version version
27+
:scm {:tag (sha nil)
28+
:connection (str "scm:git:" scm-url)
29+
:developerConnection (str "scm:git:" scm-url)
30+
:url scm-url})
31+
(bb/clean)
32+
(bb/jar)))
33+
34+
(defn deploy
35+
"Send to Clojars"
36+
[opts]
37+
(-> opts
38+
(assoc :lib lib :version version)
39+
(bb/deploy)))

deps.edn

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
1-
{:paths ["src" "dev"]
1+
{:paths ["src"]
22

33
:mvn/repos {"clojure-desktop-toolkit"
44
{:url "https://coconutpalm.github.io/clojure-desktop-toolkit/maven"}}
55

66
:deps {org.clojure/clojure {:mvn/version "1.12.0"}
7-
io.github.coconutpalm/righttypes {:git/sha "7a0243fa1e7e18de980e7f9267106582d559a301"}
7+
io.github.coconutpalm/righttypes {:mvn/version "0.7.0"}
88
virgil/virgil {:mvn/version "0.4.0"}
99
org.reflections/reflections {:mvn/version "0.10.2"}
10-
com.hyperfiddle/rcf {:mvn/version "20220926-202227"}}}
10+
com.hyperfiddle/rcf {:mvn/version "20220926-202227"}}
11+
12+
:aliases {:dev {:paths ["src" "dev"]}
13+
14+
:jar {:replace-deps {com.github.seancorfield/depstar {:mvn/version "2.0.211"}}
15+
:exec-fn hf.depstar/jar
16+
:exec-args {:jar "clojure-desktop-toolkit.jar" :sync-pom true}}
17+
18+
:deploy {:replace-deps {slipset/deps-deploy {:mvn/version "0.2.2"}}
19+
:exec-fn deps-deploy.deps-deploy/deploy
20+
:exec-args {:installer :remote :artifact "clojure-desktop-toolkit.jar"}}}}

pom.xml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<packaging>jar</packaging>
5+
<groupId>io.github.coconutpalm</groupId>
6+
<artifactId>clojure-desktop-toolkit</artifactId>
7+
<version>0.2.1</version>
8+
<name>clojure-desktop-toolkit</name>
9+
<scm>
10+
<url>https://github.com/coconutpalm/clojure-desktop-toolkit</url>
11+
<connection>scm:git:git://github.com/coconutpalm/clojure-desktop-toolkit.git</connection>
12+
<developerConnection>scm:git:ssh://[email protected]/coconutpalm/clojure-desktop-toolkit.git</developerConnection>
13+
<tag>v0.2.1</tag>
14+
</scm>
15+
<dependencies>
16+
<dependency>
17+
<groupId>org.clojure</groupId>
18+
<artifactId>clojure</artifactId>
19+
<version>1.12.0</version>
20+
</dependency>
21+
<dependency>
22+
<groupId>io.github.coconutpalm</groupId>
23+
<artifactId>righttypes</artifactId>
24+
<version>0.7.0</version>
25+
</dependency>
26+
<dependency>
27+
<groupId>virgil</groupId>
28+
<artifactId>virgil</artifactId>
29+
<version>0.4.0</version>
30+
</dependency>
31+
<dependency>
32+
<groupId>org.reflections</groupId>
33+
<artifactId>reflections</artifactId>
34+
<version>0.10.2</version>
35+
</dependency>
36+
<dependency>
37+
<groupId>com.hyperfiddle</groupId>
38+
<artifactId>rcf</artifactId>
39+
<version>20220926-202227</version>
40+
</dependency>
41+
</dependencies>
42+
<build>
43+
<sourceDirectory>src</sourceDirectory>
44+
</build>
45+
<repositories>
46+
<repository>
47+
<id>clojars</id>
48+
<url>https://repo.clojars.org/</url>
49+
</repository>
50+
<repository>
51+
<id>clojure-desktop-toolkit</id>
52+
<url>https://coconutpalm.github.io/clojure-desktop-toolkit/maven</url>
53+
</repository>
54+
</repositories>
55+
<licenses>
56+
<license>
57+
<name>Eclipse Public License 2.0</name>
58+
<url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt</url>
59+
</license>
60+
</licenses>
61+
</project>

0 commit comments

Comments
 (0)