Skip to content

Commit 3dcb803

Browse files
committed
Initial commit
0 parents  commit 3dcb803

21 files changed

+1968
-0
lines changed

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.hg
2+
.gradle
3+
build
4+
target
5+
out
6+
.idea
7+
*.iml
8+
*.ipr
9+
*.iws
10+
*.log*
11+
.DS_Store
12+
Thumbs.db
13+
gradle.properties

.hgignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
syntax: glob
2+
^.gradle/*
3+
.gradle
4+
^.git/*
5+
.git
6+
*/build/*
7+
*/target/*
8+
.DS_Store
9+
Thumbs.db
10+
*/out/*
11+
^.idea/*
12+
.idea
13+
*.iml
14+
*.ipr
15+
*.iws
16+
*.log*
17+
gradle.properties

.mvn/wrapper/maven-wrapper.jar

46.7 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.3/apache-maven-3.5.3-bin.zip

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
service:
2+
- docker
3+
4+
env:
5+
global:
6+
- TERM=dumb
7+
8+
language: java
9+
jdk: oraclejdk8
10+
11+
install: true
12+
before_script:
13+
- sudo apt update -y >/dev/null 2>&1 || true
14+
- sudo apt install -y --no-install-recommends bash unzip curl jq libxml2-utils docker-ce python-pip >/dev/null 2>&1
15+
- sudo pip install docker-compose httpie >/dev/null 2>&1
16+
- source <(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash)
17+
18+
script:
19+
- bash gradlew
20+
- bash mvnw
21+
22+
cache:
23+
directories:
24+
- $HOME/.m2
25+
- $HOME/.gradle

BINTRAY.adoc

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
= bintray
2+
3+
//tag::content[]
4+
== resolve dependencies
5+
6+
=== gradle bintray/jcenter installation
7+
.gradle setup (build.gradle)
8+
[source,gradle]
9+
----
10+
repositories {
11+
jcenter() // maven { url "https://jcenter.bintray.com" }
12+
}
13+
14+
dependencies {
15+
compile "com.github.daggerok:kotlin-html-dsl:0.1.PLUS"
16+
}
17+
----
18+
19+
=== maven bintray/jcenter installation
20+
.or shorter, just pom.xml
21+
[source,xml]
22+
----
23+
<repositories>
24+
<repository>
25+
<id>bintray-central</id>
26+
<url>https://jcenter.bintray.com</url>
27+
</repository>
28+
</repositories>
29+
30+
<dependencies>
31+
<dependency>
32+
<groupId>com.github.daggerok</groupId>
33+
<artifactId>kotlin-html-dsl</artifactId>
34+
<version>0.1.PLUS</version>
35+
</dependency>
36+
</dependencies>
37+
----
38+
39+
=== gradle bintray/daggerok installation
40+
.gradle setup (build.gradle)
41+
[source,gradle]
42+
----
43+
repositories {
44+
maven { url "https://dl.bintray.com/daggerok/daggerok" }
45+
}
46+
47+
dependencies {
48+
compile "com.github.daggerok:kotlin-html-dsl:0.1.PLUS"
49+
}
50+
----
51+
52+
=== maven bintray/daggerok installation
53+
.or shorter, just pom.xml
54+
[source,xml]
55+
----
56+
<repositories>
57+
<repository>
58+
<id>bintray-daggerok</id>
59+
<url>https://dl.bintray.com/daggerok/daggerok</url>
60+
</repository>
61+
</repositories>
62+
63+
<dependencies>
64+
<dependency>
65+
<groupId>com.github.daggerok</groupId>
66+
<artifactId>kotlin-html-dsl</artifactId>
67+
<version>0.1.PLUS</version>
68+
</dependency>
69+
</dependencies>
70+
----
71+
72+
=== or longer...
73+
.maven setup (settings.xml)
74+
[source,xml]
75+
----
76+
<profiles>
77+
<profile>
78+
<repositories>
79+
<repository>
80+
<snapshots>
81+
<enabled>false</enabled>
82+
</snapshots>
83+
<id>bintray-daggerok-daggerok</id>
84+
<name>bintray</name>
85+
<url>https://dl.bintray.com/daggerok/daggerok</url>
86+
</repository>
87+
</repositories>
88+
<pluginRepositories>
89+
<pluginRepository>
90+
<snapshots>
91+
<enabled>false</enabled>
92+
</snapshots>
93+
<id>bintray-daggerok-daggerok</id>
94+
<name>bintray-plugins</name>
95+
<url>https://dl.bintray.com/daggerok/daggerok</url>
96+
</pluginRepository>
97+
</pluginRepositories>
98+
<id>bintray</id>
99+
</profile>
100+
</profiles>
101+
<activeProfiles>
102+
<activeProfile>bintray</activeProfile>
103+
</activeProfiles>
104+
----
105+
106+
.maven setup (pom.xml)
107+
[source,xml]
108+
----
109+
<dependency>
110+
<groupId>com.github.daggerok</groupId>
111+
<artifactId>kotlin-html-dsl</artifactId>
112+
<version>0.1.PLUS</version>
113+
</dependency>
114+
----
115+
116+
== publish (upload) to bintray
117+
* register on bintray.com
118+
* update gradle.properties
119+
----
120+
cp -Rf gradle.properties-default gradle.properties
121+
vi gradle.properties
122+
# ...
123+
bintrayUser=<change me: your bintray user>
124+
bintrayApiKey=<change me: your bintray api key>
125+
----
126+
* publish to bintray
127+
----
128+
./gradlew -iS clean bintrayUpload
129+
----
130+
131+
links:
132+
133+
* link:https://github.com/bintray/gradle-bintray-plugin
134+
* link:https://bintray.com/docs/usermanual/formats/formats_mavenrepositories.html#_working_with_gradle
135+
* link:https://bintray.com/docs/usermanual/formats/formats_mavenrepositories.html#_working_with_maven
136+
//end::content[]

JITPACK.adoc

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
= jitpack
2+
3+
//tag::content[]
4+
=== create github release
5+
6+
.resolving dependencies with gradle (build.gradle):
7+
[source,groovy]
8+
----
9+
// JitPack 1:
10+
allprojects {
11+
repositories {
12+
maven { url "https://jitpack.io" }
13+
}
14+
}
15+
16+
dependencies {
17+
// JitPack 2:
18+
compile "com.github.daggerok:kotlin-html-dsl:0.1.PLUS"
19+
}
20+
----
21+
22+
.resolving dependencies with maven (pom.xml):
23+
[source,xml]
24+
----
25+
<!-- JitPack 1: -->
26+
<repositories>
27+
<repository>
28+
<id>jitpack.io</id>
29+
<url>https://jitpack.io</url>
30+
</repository>
31+
</repositories>
32+
33+
<dependencies>
34+
<!-- JitPack 2: -->
35+
<dependency>
36+
<groupId>com.github.daggerok</groupId>
37+
<artifactId>kotlin-html-dsl</artifactId>
38+
<version>0.1.PLUS</version>
39+
</dependency>
40+
</dependencies>
41+
----
42+
43+
=== force rebuild jitpack
44+
45+
* update using gradle:
46+
[source,groovy]
47+
----
48+
// build ${branchName} version:
49+
compile "com.github.daggerok:kotlin-html-dsl:${branchName}-SNAPSHOT"
50+
51+
// build master version:
52+
compile "com.github.daggerok:kotlin-html-dsl:master-SNAPSHOT"
53+
54+
// build latest version:
55+
compile "com.github.daggerok:kotlin-html-dsl:-SNAPSHOT"
56+
----
57+
58+
* run build with refresh dependencies flag
59+
[source,bash]
60+
----
61+
./gradlew --refresh-dependencies
62+
----
63+
64+
links:
65+
66+
* link:https://jitpack.io/#daggerok/kotlin-html-dsl
67+
//end::content[]

README.adoc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
= kotlin-html-dsl
2+
3+
//tag::content[]
4+
Simple and small Kotlin HTML DSL library.
5+
Could be used to build server-side MVC apps
6+
7+
.build
8+
----
9+
# maven:
10+
./mvnw
11+
12+
# or gradle:
13+
./gradlew
14+
----
15+
16+
read more link:./BINTRAY.adoc[here] and link:./JITPACK.adoc[here]
17+
18+
generated by link:https://github.com/daggerok/generator-jvm/[jvm] yeoman generator
19+
//end::content[]

VERSIONS.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
= versions
2+
3+
see link:./BINTRAY.adoc[bintray] and link:./JITPACK.adoc[jitpack] READMEs to pickup right version from repository you need...
4+
5+
|===
6+
|bintray jcenter/daggerok|jitpack
7+
8+
|0.1.PLUS
9+
|0.1.PLUS
10+
11+
//|1.0.PLUS
12+
//|1.0.PLUS
13+
|===

0 commit comments

Comments
 (0)