Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 103 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# General
*.log
*.keystore
.history/
*.tgz

# git-secret rules
.secrets/*.*
!.secrets/*.secret
!.secrets/public-keys/
.gitsecret/keys/random_seed
.gitsecret/keys/pubring.kbx~


.ci/gradle*

# You can put a script which call `yarn prettier-eslint --write` that prettify the file in-place.
# Keep in mind the hook files are executed by alphabet sequence: so `in_place_prettier_eslint` will be executed before `prettier_eslint`
buildtools/hooks/pre-commit.d/in_place_prettier_eslint

# Archives / Binaries
*.jar
*.zip
*.tar.gz
*.so
*.xcarchive

# MacOS
.DS_Store

# Build Output
build/
out/
bin/
codemr/

# JetBrains
.idea/
*.iml
*.ipr
*.iws
.mvn/
.project

# VSCode
.vscode/
*.code-workspace

# Eclipse
.settings/
.classpath

# Java
*.hprof
.gradle/
!gradle-wrapper.jar
!gradle-wrapper.properties


# Node or NPM or Yarn
npm-debug.log*
yarn-debug.log*
yarn-error.log*
node_modules/
.eslintcache

# Jest/Bamboo test results output
jest.json
coverage/

# Vagrant
.vagrant/

# Xcode
#
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace
**/*.framework/


# VIM
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-v][a-z]
[._]sw[a-p]
version.yml

#Andorid
local.properties
59 changes: 59 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

plugins {
`java-library`
`maven-publish`
// Not possible to set the version for a plugin from a variable.
kotlin("plugin.spring") version "1.8.21"
kotlin("jvm") version "1.8.21"
id("io.spring.dependency-management") version "1.1.2"
}

repositories {
mavenLocal()
maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
mavenCentral()
}

group = "com.github.firetail-io"
version = "0.0.1.SNAPSHOT"
description = "firetail-java-lib"
java.sourceCompatibility = JavaVersion.VERSION_1_8

dependencies {
implementation(
platform("org.springframework.boot:spring-boot-dependencies:2.7.14"),
)
api("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
api("commons-io:commons-io:2.7")
api("net.logstash.logback:logstash-logback-encoder:7.4")
api("javax.annotation:javax.annotation-api:1.3.2")
// Dependencies are transitively imported from spring-boot-dependencies
api("org.slf4j:slf4j-api")
api("ch.qos.logback:logback-classic")
compileOnly("javax.servlet:javax.servlet-api")
compileOnly("org.springframework.boot:spring-boot-autoconfigure")
compileOnly("org.springframework:spring-context")
compileOnly("org.springframework:spring-web")
compileOnly("org.springframework:spring-web")
compileOnly("org.springframework:spring-webmvc")
testImplementation(kotlin("test"))
testImplementation("javax.servlet:javax.servlet-api")
testImplementation("org.springframework:spring-test")
testImplementation("org.assertj:assertj-core")
testImplementation("org.mockito.kotlin:mockito-kotlin:5.0.0")
}

publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
kotlin {
jvmToolchain(8)
}

tasks.test { // See 5️⃣
useJUnitPlatform() // JUnitPlatform for tests. See 6️⃣
}
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading