Skip to content

Commit d0a5892

Browse files
committed
compilation and running annot proc works under JDK8
0 parents  commit d0a5892

File tree

15 files changed

+850
-0
lines changed

15 files changed

+850
-0
lines changed

.gitignore

Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Xcode template
3+
# Xcode
4+
#
5+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
6+
7+
## User settings
8+
xcuserdata/
9+
10+
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
11+
*.xcscmblueprint
12+
*.xccheckout
13+
14+
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
15+
build/
16+
DerivedData/
17+
*.moved-aside
18+
*.pbxuser
19+
!default.pbxuser
20+
*.mode1v3
21+
!default.mode1v3
22+
*.mode2v3
23+
!default.mode2v3
24+
*.perspectivev3
25+
!default.perspectivev3
26+
### SublimeText template
27+
# Cache files for Sublime Text
28+
*.tmlanguage.cache
29+
*.tmPreferences.cache
30+
*.stTheme.cache
31+
32+
# Workspace files are user-specific
33+
*.sublime-workspace
34+
35+
# Project files should be checked into the repository, unless a significant
36+
# proportion of contributors will probably not be using Sublime Text
37+
# *.sublime-project
38+
39+
# SFTP configuration file
40+
sftp-config.json
41+
42+
# Package control specific files
43+
Package Control.last-run
44+
Package Control.ca-list
45+
Package Control.ca-bundle
46+
Package Control.system-ca-bundle
47+
Package Control.cache/
48+
Package Control.ca-certs/
49+
Package Control.merged-ca-bundle
50+
Package Control.user-ca-bundle
51+
oscrypto-ca-bundle.crt
52+
bh_unicode_properties.cache
53+
54+
# Sublime-github package stores a github token in this file
55+
# https://packagecontrol.io/packages/sublime-github
56+
GitHub.sublime-settings
57+
### Vim template
58+
# Swap
59+
[._]*.s[a-v][a-z]
60+
[._]*.sw[a-p]
61+
[._]s[a-v][a-z]
62+
[._]sw[a-p]
63+
64+
# Session
65+
Session.vim
66+
67+
# Temporary
68+
.netrwhist
69+
*~
70+
# Auto-generated tag files
71+
tags
72+
### JetBrains template
73+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
74+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
75+
76+
# User-specific stuff:
77+
.idea/**/workspace.xml
78+
.idea/**/tasks.xml
79+
.idea/dictionaries
80+
81+
# Sensitive or high-churn files:
82+
.idea/**/dataSources/
83+
.idea/**/dataSources.ids
84+
.idea/**/dataSources.xml
85+
.idea/**/dataSources.local.xml
86+
.idea/**/sqlDataSources.xml
87+
.idea/**/dynamic.xml
88+
.idea/**/uiDesigner.xml
89+
90+
# Gradle:
91+
.idea/**/gradle.xml
92+
.idea/**/libraries
93+
.gradle/
94+
95+
# CMake
96+
cmake-build-debug/
97+
cmake-build-release/
98+
99+
# Mongo Explorer plugin:
100+
.idea/**/mongoSettings.xml
101+
102+
## File-based project format:
103+
*.iws
104+
105+
## Plugin-specific files:
106+
107+
# IntelliJ
108+
out/
109+
110+
*.iml
111+
.idea/modules.xml
112+
113+
# mpeltonen/sbt-idea plugin
114+
.idea_modules/
115+
116+
# JIRA plugin
117+
atlassian-ide-plugin.xml
118+
119+
# Cursive Clojure plugin
120+
.idea/replstate.xml
121+
122+
# Crashlytics plugin (for Android Studio and IntelliJ)
123+
com_crashlytics_export_strings.xml
124+
crashlytics.properties
125+
crashlytics-build.properties
126+
fabric.properties
127+
### Java template
128+
# Compiled class file
129+
*.class
130+
131+
# Log file
132+
*.log
133+
134+
# BlueJ files
135+
*.ctxt
136+
137+
# Mobile Tools for Java (J2ME)
138+
.mtj.tmp/
139+
140+
# Package Files #
141+
*.jar
142+
*.war
143+
*.ear
144+
*.zip
145+
*.tar.gz
146+
*.rar
147+
148+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
149+
hs_err_pid*
150+
### VisualStudioCode template
151+
.vscode/*
152+
!.vscode/settings.json
153+
!.vscode/tasks.json
154+
!.vscode/launch.json
155+
!.vscode/extensions.json
156+
### Windows template
157+
# Windows thumbnail cache files
158+
Thumbs.db
159+
ehthumbs.db
160+
ehthumbs_vista.db
161+
162+
# Dump file
163+
*.stackdump
164+
165+
# Folder config file
166+
[Dd]esktop.ini
167+
168+
# Recycle Bin used on file shares
169+
$RECYCLE.BIN/
170+
171+
# Windows Installer files
172+
*.cab
173+
*.msi
174+
*.msm
175+
*.msp
176+
177+
# Windows shortcuts
178+
*.lnk
179+
### macOS template
180+
# General
181+
.DS_Store
182+
.AppleDouble
183+
.LSOverride
184+
185+
# Icon must end with two \r
186+
Icon
187+
188+
# Thumbnails
189+
._*
190+
191+
# Files that might appear in the root of a volume
192+
.DocumentRevisions-V100
193+
.fseventsd
194+
.Spotlight-V100
195+
.TemporaryItems
196+
.Trashes
197+
.VolumeIcon.icns
198+
.com.apple.timemachine.donotpresent
199+
200+
# Directories potentially created on remote AFP share
201+
.AppleDB
202+
.AppleDesktop
203+
Network Trash Folder
204+
Temporary Items
205+
.apdisk
206+
### TortoiseGit template
207+
# Project-level settings
208+
/.tgitconfig
209+
### Kotlin template
210+
# Compiled class file
211+
*.class
212+
213+
# Log file
214+
*.log
215+
216+
# BlueJ files
217+
*.ctxt
218+
219+
# Mobile Tools for Java (J2ME)
220+
.mtj.tmp/
221+
222+
# Package Files #
223+
*.jar
224+
*.war
225+
*.ear
226+
*.zip
227+
*.tar.gz
228+
*.rar
229+
230+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
231+
hs_err_pid*
232+

.idea/codeStyles/Project.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
buildscript {
2+
ext.kotlin_version = '1.3.11'
3+
4+
repositories {
5+
mavenCentral()
6+
maven { url 'https://jitpack.io' }
7+
}
8+
9+
dependencies {
10+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11+
}
12+
}
13+
14+
plugins {
15+
id 'java'
16+
id 'org.jetbrains.kotlin.jvm' version '1.3.11'
17+
18+
}
19+
20+
apply plugin: 'kotlin'
21+
apply plugin: 'kotlin-kapt'
22+
apply plugin: 'idea'
23+
24+
group 'com.tschuchort'
25+
version '1.0-SNAPSHOT'
26+
27+
sourceCompatibility = 1.8
28+
29+
repositories {
30+
mavenCentral()
31+
maven { url 'https://jitpack.io' }
32+
maven { url 'https://kotlin.bintray.com/kotlinx' }
33+
jcenter()
34+
}
35+
36+
idea {
37+
module {
38+
sourceDirs += files('build/generated/source/kapt/main', 'build/generated/source/kaptKotlin/main')
39+
generatedSourceDirs += files('build/generated/source/kapt/main', 'build/generated/source/kaptKotlin/main')
40+
}
41+
}
42+
43+
dependencies {
44+
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
45+
testCompile group: 'junit', name: 'junit', version: '4.12'
46+
47+
testCompile "org.assertj:assertj-core:3.11.1"
48+
49+
compile "me.eugeniomarletti.kotlin.metadata:kotlin-metadata:1.4.0"
50+
51+
testCompile "com.squareup.okio:okio:2.1.0"
52+
53+
// the Kotlin compiler should be near the end of the list because its .jar file includes
54+
// an obsolete version of Guava
55+
testCompile "org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.11"
56+
testCompile "org.jetbrains.kotlin:kotlin-annotation-processing-embeddable:1.3.11"
57+
58+
testCompile "com.google.testing.compile:compile-testing:0.15"
59+
60+
testCompile files("${System.properties['java.home']}/../lib/tools.jar")
61+
}
62+
63+
compileKotlin {
64+
kotlinOptions.jvmTarget = "1.8"
65+
kotlinOptions.freeCompilerArgs += ["-Xskip-runtime-version-check"]
66+
}
67+
compileTestKotlin {
68+
kotlinOptions.jvmTarget = "1.8"
69+
}

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
kotlin.code.style=official
2+
kotlin.incremental=false
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+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)