Skip to content

Commit 6b4bd67

Browse files
committed
feat (authorization, message, chat): initial commit
0 parents  commit 6b4bd67

36 files changed

Lines changed: 1224 additions & 0 deletions

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
#
4+
# These are explicitly windows files and should use crlf
5+
*.bat text eol=crlf
6+

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Ignore Gradle project-specific cache directory
2+
.gradle
3+
4+
# Ignore Gradle build output directory
5+
build

build.gradle.kts

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
plugins {
2+
val pluginVersion by System.getProperties()
3+
4+
id("io.micronaut.library") version "1.1.0"
5+
id("org.jetbrains.dokka") version "1.4.20"
6+
id("org.jetbrains.kotlin.jvm") version "$pluginVersion"
7+
id("org.jetbrains.kotlin.kapt") version "$pluginVersion"
8+
id("org.jetbrains.kotlin.plugin.allopen") version "$pluginVersion"
9+
id("groovy")
10+
}
11+
12+
version = "0.1.0"
13+
group = "org.microjservice.lark"
14+
15+
val kotlinVersion = project.properties["kotlinVersion"]
16+
val jdkVersion: String by project
17+
val micronautVersion: String by project
18+
19+
micronaut {
20+
version(micronautVersion)
21+
}
22+
23+
repositories {
24+
jcenter()
25+
mavenCentral()
26+
}
27+
28+
dependencies {
29+
kapt(platform("io.micronaut:micronaut-bom:$micronautVersion"))
30+
kapt("io.micronaut:micronaut-inject-java")
31+
kaptTest("io.micronaut:micronaut-inject-java")
32+
testAnnotationProcessor("io.micronaut:micronaut-inject-java")
33+
dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.4.20")
34+
35+
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
36+
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
37+
38+
implementation("io.micronaut", "micronaut-http-client")
39+
40+
runtimeOnly("ch.qos.logback:logback-classic")
41+
42+
testImplementation ("io.micronaut.test:micronaut-test-spock")
43+
testImplementation("org.spockframework:spock-core") {
44+
exclude("org.codehaus.groovy", "groovy-all")
45+
}
46+
47+
testImplementation("org.junit.jupiter:junit-jupiter-api")
48+
testImplementation("io.micronaut.test:micronaut-test-junit5:2.3.2")
49+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.0")
50+
51+
// testImplementation( "io.micronaut.test:micronaut-test-kotest")
52+
// testImplementation( "io.mockk:mockk")
53+
// testImplementation( "io.kotest:kotest-runner-junit5-jvm")
54+
55+
testImplementation("io.micronaut.test:micronaut-test-kotest:2.3.2")
56+
testImplementation("io.mockk:mockk:1.10.4")
57+
testImplementation("io.kotest:kotest-runner-junit5-jvm:4.3.0")
58+
59+
runtimeOnly("com.fasterxml.jackson.module:jackson-module-kotlin")
60+
}
61+
62+
tasks.withType<Test> {
63+
useJUnitPlatform()
64+
}
65+
66+
java {
67+
sourceCompatibility = JavaVersion.toVersion(jdkVersion)
68+
}
69+
70+
tasks {
71+
compileKotlin {
72+
kotlinOptions {
73+
jvmTarget = jdkVersion
74+
}
75+
}
76+
compileTestKotlin {
77+
kotlinOptions {
78+
jvmTarget = jdkVersion
79+
}
80+
}
81+
}

gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
jdkVersion=1.8
2+
micronautVersion=2.4.0
3+
kotlinVersion=1.4.30
4+
systemProp.pluginVersion=1.4.30
5+

gradle/wrapper/gradle-wrapper.jar

57.8 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+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

gradlew

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

gradlew.bat

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

settings.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*
4+
* The settings file is used to specify which projects to include in your build.
5+
*
6+
* Detailed information about configuring a multi-project build in Gradle can be found
7+
* in the user manual at https://docs.gradle.org/6.8.3/userguide/multi_project_builds.html
8+
*/
9+
10+
rootProject.name = "lark-api"

0 commit comments

Comments
 (0)