Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3889da8

Browse files
committed
setup/gradle build
0 parents commit 3889da8

File tree

8 files changed

+589
-0
lines changed

8 files changed

+589
-0
lines changed

‎.gitignore

Lines changed: 266 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,266 @@
1+
2+
# Created by https://www.gitignore.io/api/osx,java,linux,macos,maven,gradle,kotlin,java-web,intellij,intellij+all,intellij+iml
3+
4+
### Intellij ###
5+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
6+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
7+
8+
# User-specific stuff:
9+
.idea/**/workspace.xml
10+
.idea/**/tasks.xml
11+
.idea/dictionaries
12+
13+
# Sensitive or high-churn files:
14+
.idea/**/dataSources/
15+
.idea/**/dataSources.ids
16+
.idea/**/dataSources.xml
17+
.idea/**/dataSources.local.xml
18+
.idea/**/sqlDataSources.xml
19+
.idea/**/dynamic.xml
20+
.idea/**/uiDesigner.xml
21+
22+
# Gradle:
23+
.idea/**/gradle.xml
24+
.idea/**/libraries
25+
26+
# CMake
27+
cmake-build-debug/
28+
29+
# Mongo Explorer plugin:
30+
.idea/**/mongoSettings.xml
31+
32+
## File-based project format:
33+
*.iws
34+
35+
## Plugin-specific files:
36+
37+
# IntelliJ
38+
/out/
39+
40+
# mpeltonen/sbt-idea plugin
41+
.idea_modules/
42+
43+
# JIRA plugin
44+
atlassian-ide-plugin.xml
45+
46+
# Cursive Clojure plugin
47+
.idea/replstate.xml
48+
49+
# Ruby plugin and RubyMine
50+
/.rakeTasks
51+
52+
# Crashlytics plugin (for Android Studio and IntelliJ)
53+
com_crashlytics_export_strings.xml
54+
crashlytics.properties
55+
crashlytics-build.properties
56+
fabric.properties
57+
58+
### Intellij Patch ###
59+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
60+
61+
# *.iml
62+
# modules.xml
63+
# .idea/misc.xml
64+
# *.ipr
65+
66+
# Sonarlint plugin
67+
.idea/sonarlint
68+
69+
### Intellij+all ###
70+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
71+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
72+
73+
# User-specific stuff:
74+
75+
# Sensitive or high-churn files:
76+
77+
# Gradle:
78+
79+
# CMake
80+
81+
# Mongo Explorer plugin:
82+
83+
## File-based project format:
84+
85+
## Plugin-specific files:
86+
87+
# IntelliJ
88+
89+
# mpeltonen/sbt-idea plugin
90+
91+
# JIRA plugin
92+
93+
# Cursive Clojure plugin
94+
95+
# Ruby plugin and RubyMine
96+
97+
# Crashlytics plugin (for Android Studio and IntelliJ)
98+
99+
### Intellij+all Patch ###
100+
# Ignores the whole idea folder
101+
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
102+
103+
.idea/
104+
105+
### Intellij+iml ###
106+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
107+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
108+
109+
# User-specific stuff:
110+
111+
# Sensitive or high-churn files:
112+
113+
# Gradle:
114+
115+
# CMake
116+
117+
# Mongo Explorer plugin:
118+
119+
## File-based project format:
120+
121+
## Plugin-specific files:
122+
123+
# IntelliJ
124+
125+
# mpeltonen/sbt-idea plugin
126+
127+
# JIRA plugin
128+
129+
# Cursive Clojure plugin
130+
131+
# Ruby plugin and RubyMine
132+
133+
# Crashlytics plugin (for Android Studio and IntelliJ)
134+
135+
### Intellij+iml Patch ###
136+
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
137+
138+
*.iml
139+
modules.xml
140+
.idea/misc.xml
141+
*.ipr
142+
143+
### Java ###
144+
# Compiled class file
145+
*.class
146+
147+
# Log file
148+
*.log
149+
150+
# BlueJ files
151+
*.ctxt
152+
153+
# Mobile Tools for Java (J2ME)
154+
.mtj.tmp/
155+
156+
# Package Files #
157+
*.jar
158+
*.war
159+
*.ear
160+
*.zip
161+
*.tar.gz
162+
*.rar
163+
164+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
165+
hs_err_pid*
166+
167+
### Java-Web ###
168+
## ignoring target file
169+
target/
170+
171+
### Kotlin ###
172+
# Compiled class file
173+
174+
# Log file
175+
176+
# BlueJ files
177+
178+
# Mobile Tools for Java (J2ME)
179+
180+
# Package Files #
181+
182+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
183+
184+
### Linux ###
185+
*~
186+
187+
# temporary files which can be created if a process still has a handle open of a deleted file
188+
.fuse_hidden*
189+
190+
# KDE directory preferences
191+
.directory
192+
193+
# Linux trash folder which might appear on any partition or disk
194+
.Trash-*
195+
196+
# .nfs files are created when an open file is removed but is still being accessed
197+
.nfs*
198+
199+
### macOS ###
200+
*.DS_Store
201+
.AppleDouble
202+
.LSOverride
203+
204+
# Icon must end with two \r
205+
Icon
206+
207+
# Thumbnails
208+
._*
209+
210+
# Files that might appear in the root of a volume
211+
.DocumentRevisions-V100
212+
.fseventsd
213+
.Spotlight-V100
214+
.TemporaryItems
215+
.Trashes
216+
.VolumeIcon.icns
217+
.com.apple.timemachine.donotpresent
218+
219+
# Directories potentially created on remote AFP share
220+
.AppleDB
221+
.AppleDesktop
222+
Network Trash Folder
223+
Temporary Items
224+
.apdisk
225+
226+
### Maven ###
227+
pom.xml.tag
228+
pom.xml.releaseBackup
229+
pom.xml.versionsBackup
230+
pom.xml.next
231+
release.properties
232+
dependency-reduced-pom.xml
233+
buildNumber.properties
234+
.mvn/timing.properties
235+
236+
# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
237+
!/.mvn/wrapper/maven-wrapper.jar
238+
239+
### OSX ###
240+
241+
# Icon must end with two \r
242+
243+
# Thumbnails
244+
245+
# Files that might appear in the root of a volume
246+
247+
# Directories potentially created on remote AFP share
248+
249+
### Gradle ###
250+
.gradle
251+
**/build/
252+
253+
# Ignore Gradle GUI config
254+
gradle-app.setting
255+
256+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
257+
!gradle-wrapper.jar
258+
259+
# Cache of project
260+
.gradletasknamecache
261+
262+
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
263+
# gradle/wrapper/gradle-wrapper.properties
264+
265+
266+
# End of https://www.gitignore.io/api/osx,java,linux,macos,maven,gradle,kotlin,java-web,intellij,intellij+all,intellij+iml

‎README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Simple REST API Kotlin + Spring Boot
2+
====================================
3+
4+
Code from following tutorial - https://scotch.io/@grahamcox82/how-to-build-a-simple-rest-api-with-kotlin-and-spring-boot

‎build.gradle

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
buildscript {
2+
repositories {
3+
mavenCentral()
4+
}
5+
dependencies {
6+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
7+
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion"
8+
classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
9+
}
10+
}
11+
12+
apply plugin: 'kotlin'
13+
apply plugin: 'kotlin-spring'
14+
apply plugin: 'org.springframework.boot'
15+
16+
repositories {
17+
mavenCentral()
18+
}
19+
20+
21+
dependencies {
22+
// Kotlin Dependencies
23+
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
24+
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
25+
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion"
26+
27+
// Spring Dependencies
28+
compile("org.springframework.boot:spring-boot-starter-web:$springBootVersion") {
29+
exclude module: "spring-boot-starter-tomcat"
30+
}
31+
compile "org.springframework.boot:spring-boot-starter-jetty:$springBootVersion"
32+
compile "org.springframework.boot:spring-boot-starter-actuator:$springBootVersion"
33+
34+
// Jackson Dependencies
35+
compile "com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion"
36+
compile "com.fasterxml.jackson.core:jackson-core:$jacksonVersion"
37+
compile "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
38+
runtime "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:$jacksonVersion"
39+
runtime "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonVersion"
40+
runtime "com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion"
41+
}
42+
43+
task wrapper(type: Wrapper) {
44+
gradleVersion = "4.5.1"
45+
}
46+
47+
test {
48+
testLogging {
49+
exceptionFormat = 'full'
50+
events = ["passed", "failed", "skipped"]
51+
}
52+
}

‎gradle.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
jacksonVersion=2.9.4
2+
junitVersion=4.12
3+
kotlinVersion=1.2.21
4+
mockitoVersion=1.10.19
5+
powerMockVersion=1.7.3
6+
springBootVersion=1.5.10.RELEASE

‎gradle/wrapper/gradle-wrapper.jar

53.1 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
zipStoreBase=GRADLE_USER_HOME
4+
zipStorePath=wrapper/dists
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-bin.zip

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /