File tree Expand file tree Collapse file tree 5 files changed +25
-5
lines changed
src/main/kotlin/com/fractalwrench/json2kotlin
kotlin/com/fractalwrench/json2kotlin Expand file tree Collapse file tree 5 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,10 @@ repositories {
6
6
}
7
7
8
8
dependencies {
9
- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version "
10
- implementation project(" :core" )
11
- implementation " commons-cli:commons-cli:1.4"
9
+ compile " org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version "
10
+ compile project(" :core" )
11
+ compile " commons-cli:commons-cli:1.4"
12
+ compile ' com.bugsnag:bugsnag:3.1.4'
12
13
}
13
14
14
15
mainClassName = " com.fractalwrench.json2kotlin.AppKt"
Original file line number Diff line number Diff line change 1
1
package com.fractalwrench.json2kotlin
2
2
3
+ import com.bugsnag.Bugsnag
3
4
import org.apache.commons.cli.*
4
5
import java.io.File
5
6
import java.nio.file.Paths
6
7
7
8
8
9
fun main (args : Array <String >) {
10
+ Bugsnag (" 36024661eca71fb467ceddbaeeff35c3" )
9
11
10
12
val options = prepareOptions()
11
13
val parser = DefaultParser ()
@@ -21,7 +23,7 @@ fun main(args: Array<String>) {
21
23
22
24
if (inputFile.exists()) {
23
25
val outputFile = findOutputFile(inputFile)
24
- Kotlin2JsonConverter ().convert(inputFile.inputStream(), outputFile.outputStream(), ConversionArgs ()) // FIXME respect package name
26
+ Kotlin2JsonConverter ().convert(inputFile.inputStream(), outputFile.outputStream(), ConversionArgs ())
25
27
println (" Generated source available at '$outputFile '" )
26
28
} else {
27
29
println (" Failed to find file '$inputFile '" )
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ dependencies {
38
38
compile(" org.springframework.boot:spring-boot-starter-thymeleaf" )
39
39
compile(" org.springframework.boot:spring-boot-starter-actuator" )
40
40
testCompile(' org.springframework.boot:spring-boot-starter-test' )
41
- compile ' com.google.code.gson:gson:2.8.2' // FIXME
41
+ compile ' com.google.code.gson:gson:2.8.2'
42
42
compile ' com.squareup:kotlinpoet:0.7.0'
43
+ compile ' com.bugsnag:bugsnag:3.1.4'
43
44
}
Original file line number Diff line number Diff line change
1
+ package com.fractalwrench.json2kotlin
2
+
3
+ import com.bugsnag.Bugsnag
4
+ import org.springframework.context.annotation.Bean
5
+ import org.springframework.context.annotation.Configuration
6
+
7
+
8
+ @Configuration
9
+ class BugsnagConfig {
10
+
11
+ @Bean
12
+ fun bugsnag (): Bugsnag = Bugsnag (" 063150c3f3019d4f4fecc133a54cc8ee" )
13
+
14
+ }
Original file line number Diff line number Diff line change 22
22
< meta property ="og:url " content ="https://fractalwrench.co.uk/ "/>
23
23
< meta property ="og:type " content ="website "/>
24
24
< meta property ="og:site_name " content ="Fractalwrench "/>
25
+ < script src ="//d2wy8f7a9ursnm.cloudfront.net/v4/bugsnag.min.js "> </ script >
26
+ < script > window . bugsnagClient = bugsnag ( 'e30369d8a62425a9e22a9b9e984d2d22' ) </ script >
25
27
</ head >
26
28
27
29
<!-- Slightly ashamed of this JavaScript/CSS but it works ¯\_(ツ)_/¯ -->
You can’t perform that action at this time.
0 commit comments