Skip to content

Commit 094b041

Browse files
committed
Initializing project
1 parent 572f456 commit 094b041

File tree

4 files changed

+279
-18
lines changed

4 files changed

+279
-18
lines changed

.gitignore

Lines changed: 70 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,75 @@
1-
# Compiled class file
2-
*.class
1+
### Maven template
2+
target/
3+
pom.xml.tag
4+
pom.xml.releaseBackup
5+
pom.xml.versionsBackup
6+
pom.xml.next
7+
release.properties
8+
dependency-reduced-pom.xml
9+
buildNumber.properties
10+
.mvn/timing.properties
311

4-
# Log file
5-
*.log
12+
# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
13+
!/.mvn/wrapper/maven-wrapper.jar
14+
### JetBrains template
15+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
16+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
617

7-
# BlueJ files
8-
*.ctxt
18+
# User-specific stuff:
19+
.idea/
20+
.idea/**/workspace.xml
21+
.idea/**/tasks.xml
22+
.idea/dictionaries
923

10-
# Mobile Tools for Java (J2ME)
11-
.mtj.tmp/
24+
# Sensitive or high-churn files:
25+
.idea/**/dataSources/
26+
.idea/**/dataSources.ids
27+
.idea/**/dataSources.xml
28+
.idea/**/dataSources.local.xml
29+
.idea/**/sqlDataSources.xml
30+
.idea/**/dynamic.xml
31+
.idea/**/uiDesigner.xml
1232

13-
# Package Files #
14-
*.jar
15-
*.war
16-
*.nar
17-
*.ear
18-
*.zip
19-
*.tar.gz
20-
*.rar
33+
# Gradle:
34+
.idea/**/gradle.xml
35+
.idea/**/libraries
2136

22-
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
23-
hs_err_pid*
37+
# CMake
38+
cmake-build-debug/
39+
40+
# Mongo Explorer plugin:
41+
.idea/**/mongoSettings.xml
42+
43+
## File-based project format:
44+
*.iws
45+
46+
## Plugin-specific files:
47+
48+
# IntelliJ
49+
out/
50+
*.iml
51+
# mpeltonen/sbt-idea plugin
52+
.idea_modules/
53+
54+
# JIRA plugin
55+
atlassian-ide-plugin.xml
56+
57+
# Cursive Clojure plugin
58+
.idea/replstate.xml
59+
60+
# Crashlytics plugin (for Android Studio and IntelliJ)
61+
com_crashlytics_export_strings.xml
62+
crashlytics.properties
63+
crashlytics-build.properties
64+
fabric.properties
65+
66+
# Vertx
67+
.vertx/
68+
69+
# Javadocs
70+
javadocs/
71+
72+
# File Upload
73+
file-uploads/
74+
75+
*.log

pom.xml

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>net.cloudopt.logger</groupId>
7+
<artifactId>cloudopt-logger</artifactId>
8+
<version>1.0.0-SNAPSHOT</version>
9+
<packaging>jar</packaging>
10+
11+
<pluginRepositories>
12+
<pluginRepository>
13+
<id>jcenter</id>
14+
<name>JCenter</name>
15+
<url>https://jcenter.bintray.com/</url>
16+
</pluginRepository>
17+
</pluginRepositories>
18+
19+
<name>cloudopt-logger</name>
20+
<description>cloudopt-logger is a super lightweight logging library implemented in pure Kotlin.
21+
It is designed to be used in Kotlin, Java and Android.</description>
22+
<url>https://next.cloudopt.net</url>
23+
<organization>
24+
<name>Cloudopt</name>
25+
<url>https://www.cloudopt.net</url>
26+
</organization>
27+
28+
<issueManagement>
29+
<system>Github Issue</system>
30+
<url>https://github.com/cloudoptlab/cloudopt-next/issues</url>
31+
</issueManagement>
32+
33+
<licenses>
34+
<license>
35+
<name>The Apache Software License, Version 2.0</name>
36+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
37+
</license>
38+
</licenses>
39+
40+
<developers>
41+
<developer>
42+
<name>Cloudopt</name>
43+
<organization>Cloudopt</organization>
44+
<organizationUrl>https://www.cloudopt.net</organizationUrl>
45+
</developer>
46+
</developers>
47+
48+
<scm>
49+
<connection>scm:[email protected]:cloudoptlab/cloudopt-next.git</connection>
50+
<developerConnection>scm:[email protected]:cloudoptlab/cloudopt-next.git</developerConnection>
51+
<url>[email protected]:cloudoptlab/cloudopt-next.git</url>
52+
</scm>
53+
54+
<properties>
55+
<java.version>1.8</java.version>
56+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
57+
<kotlin.version>1.2.71</kotlin.version>
58+
<junit.version>4.12</junit.version>
59+
<maven.compiler.source>${java.version}</maven.compiler.source>
60+
<maven.compiler.target>${java.version}</maven.compiler.target>
61+
<kotlin.compiler.incremental>true</kotlin.compiler.incremental>
62+
<dokka.version>0.9.17</dokka.version>
63+
</properties>
64+
65+
<dependencies>
66+
<dependency>
67+
<groupId>org.jetbrains.kotlin</groupId>
68+
<artifactId>kotlin-stdlib</artifactId>
69+
<version>${kotlin.version}</version>
70+
</dependency>
71+
<dependency>
72+
<groupId>org.jetbrains.kotlin</groupId>
73+
<artifactId>kotlin-test-junit</artifactId>
74+
<version>${kotlin.version}</version>
75+
<scope>test</scope>
76+
</dependency>
77+
<dependency>
78+
<groupId>junit</groupId>
79+
<artifactId>junit</artifactId>
80+
<version>${junit.version}</version>
81+
<scope>test</scope>
82+
</dependency>
83+
</dependencies>
84+
85+
<build>
86+
<finalName>${project.name}-v${project.version}</finalName>
87+
<resources>
88+
<resource>
89+
<directory>src/main/java</directory>
90+
<includes>
91+
<include>**/*.xml</include>
92+
</includes>
93+
</resource>
94+
<resource>
95+
<directory>src/main/resources</directory>
96+
<includes>
97+
<include>**/*</include>
98+
</includes>
99+
</resource>
100+
</resources>
101+
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
102+
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
103+
<plugins>
104+
<plugin>
105+
<groupId>org.jetbrains.kotlin</groupId>
106+
<artifactId>kotlin-maven-plugin</artifactId>
107+
<version>${kotlin.version}</version>
108+
<configuration>
109+
<jvmTarget>${java.version}</jvmTarget>
110+
<apiVersion>1.2</apiVersion>
111+
<languageVersion>1.2</languageVersion>
112+
<compilerPlugins>
113+
<!-- Or "spring" for the Spring support -->
114+
<plugin>all-open</plugin>
115+
<plugin>no-arg</plugin>
116+
<plugin>jpa</plugin>
117+
<plugin>spring</plugin>
118+
</compilerPlugins>
119+
120+
<pluginOptions>
121+
<option>all-open:annotation=net.cloudopt</option>
122+
<option>no-arg:annotation=net.cloudopt</option>
123+
<option>no-arg:invokeInitializers=true</option>
124+
</pluginOptions>
125+
126+
</configuration>
127+
128+
<dependencies>
129+
<dependency>
130+
<groupId>org.jetbrains.kotlin</groupId>
131+
<artifactId>kotlin-maven-allopen</artifactId>
132+
<version>1.2.30</version>
133+
</dependency>
134+
<dependency>
135+
<groupId>org.jetbrains.kotlin</groupId>
136+
<artifactId>kotlin-maven-noarg</artifactId>
137+
<version>1.2.30</version>
138+
</dependency>
139+
</dependencies>
140+
<executions>
141+
<execution>
142+
<id>compile</id>
143+
<phase>compile</phase>
144+
<goals>
145+
<goal>compile</goal>
146+
</goals>
147+
</execution>
148+
<execution>
149+
<id>test-compile</id>
150+
<phase>test-compile</phase>
151+
<goals>
152+
<goal>test-compile</goal>
153+
</goals>
154+
</execution>
155+
</executions>
156+
</plugin>
157+
<plugin>
158+
<groupId>org.apache.maven.plugins</groupId>
159+
<artifactId>maven-jar-plugin</artifactId>
160+
<version>3.0.2</version>
161+
</plugin>
162+
<plugin>
163+
<groupId>org.apache.maven.plugins</groupId>
164+
<artifactId>maven-compiler-plugin</artifactId>
165+
<version>3.3</version>
166+
<configuration>
167+
<source>${maven.compiler.source}</source>
168+
<target>${maven.compiler.target}</target>
169+
</configuration>
170+
</plugin>
171+
172+
<plugin>
173+
<groupId>org.jetbrains.dokka</groupId>
174+
<artifactId>dokka-maven-plugin</artifactId>
175+
<version>${dokka.version}</version>
176+
<executions>
177+
<execution>
178+
<phase>pre-site</phase>
179+
<goals>
180+
<goal>dokka</goal>
181+
</goals>
182+
</execution>
183+
</executions>
184+
<configuration>
185+
<outputFormat>html</outputFormat>
186+
<outputDir>${project.basedir}/target/dokka</outputDir>
187+
<jdkVersion>8</jdkVersion>
188+
</configuration>
189+
</plugin>
190+
191+
</plugins>
192+
</build>
193+
194+
</project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package net.cloudopt.logger
2+
3+
4+
fun main(args: Array<String>) {
5+
println("Hello, World")
6+
}
7+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package net.cloudopt
2+
3+
import org.junit.Test
4+
import kotlin.test.assertEquals
5+
6+
class HelloTest {
7+
8+
}

0 commit comments

Comments
 (0)