Skip to content

Commit d768431

Browse files
committed
reorganise into separate modules
1 parent 45586fe commit d768431

File tree

150 files changed

+72
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+72
-9
lines changed

TODO.md

+1-2

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ dependencies {
1717
}
1818

1919
buildscript {
20-
ext.kotlin_version = '1.2.20'
20+
ext.kotlin_version = '1.2.10'
2121
repositories {
22-
mavenCentral()
22+
jcenter()
2323
}
2424
dependencies {
2525
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

cmdline/.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.iml
2+
/build
3+
.gradle/
4+
*.idea/
5+
out/

cmdline/build.gradle

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apply plugin: 'kotlin'
2+
3+
repositories {
4+
jcenter()
5+
}
6+
7+
dependencies {
8+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
9+
implementation project(":core")
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.fractalwrench.json2kotlin
2+
3+
fun main(args: Array<String>) {
4+
KotlinJsonConverter()
5+
println("Hello World")
6+
}

core/.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.iml
2+
/build
3+
.gradle/
4+
*.idea/
5+
out/

core/build.gradle

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apply plugin: 'kotlin'
2+
3+
sourceCompatibility = 1.8
4+
5+
repositories {
6+
jcenter()
7+
}
8+
9+
dependencies {
10+
testImplementation "junit:junit:4.12"
11+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
12+
implementation 'com.google.code.gson:gson:2.8.2'
13+
implementation 'com.squareup:kotlinpoet:0.6.0'
14+
}
File renamed without changes.

gradle/wrapper/gradle-wrapper.jar

-459 Bytes
Binary file not shown.
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Jan 17 20:05:12 GMT 2018
1+
#Fri Feb 16 09:54:48 GMT 2018
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-rc-2-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

gradlew

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ DEFAULT_JVM_OPTS=""
3333
# Use the maximum available, or set MAX_FD != -1 to use that value.
3434
MAX_FD="maximum"
3535

36-
warn ( ) {
36+
warn () {
3737
echo "$*"
3838
}
3939

40-
die ( ) {
40+
die () {
4141
echo
4242
echo "$*"
4343
echo
@@ -155,7 +155,7 @@ if $cygwin ; then
155155
fi
156156

157157
# Escape application args
158-
save ( ) {
158+
save () {
159159
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160160
echo " "
161161
}

settings.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
rootProject.name = 'json-2-kotlin'
2+
include 'spring'
3+
include 'cmdline'
4+
include 'core'
25

spring/.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.iml
2+
/build
3+
.gradle/
4+
*.idea/
5+
out/

spring/build.gradle

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apply plugin: 'kotlin'
2+
3+
repositories {
4+
jcenter()
5+
}
6+
7+
dependencies {
8+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
9+
implementation project(":core")
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.fractalwrench.json2kotlin
2+
3+
fun main(args: Array<String>) {
4+
KotlinJsonConverter()
5+
println("Hello World")
6+
}

0 commit comments

Comments
 (0)