티스토리 뷰
728x90
# lint-klint-and-detekt.yaml
name: lint-klint-and-detekt
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
lint-klint-and-detekt:
runs-on: [ self-hosted, Linux, X64 ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: run
working-directory: package
run: ./gradlew build
# build.gradle.kts
import io.gitlab.arturbosch.detekt.Detekt
group = "com.tistory.seunggabi"
description = "seunggabi"
plugins {
kotlin("jvm")
id("io.gitlab.arturbosch.detekt")
id("org.jlleitschuh.gradle.ktlint")
}
allprojects {
repositories {
mavenCentral()
}
apply {
plugin("io.gitlab.arturbosch.detekt")
plugin("org.jlleitschuh.gradle.ktlint")
}
ktlint {
debug.set(false)
verbose.set(true)
android.set(false)
outputToConsole.set(true)
ignoreFailures.set(false)
enableExperimentalRules.set(true)
filter {
exclude("**/generated/**")
include("**/kotlin/**")
}
}
detekt {
config = rootProject.files("./detekt.yaml")
autoCorrect = true
}
}
tasks.withType<Detekt>().configureEach {
reports {
html.required.set(true)
html.outputLocation.set(file("build/reports/detekt.html"))
}
}
# gradle.properties
kotlinVersion=1.7.10
kotlinxVersion=1.6.4
springBootVersion=2.7.1
mortarVersion=1.0.4
ktlintVersion=10.3.0
detektVersion=1.20.0
jacksonVersion=2.13.3
rootProject.name = "seunggabi"
pluginManagement {
val kotlinVersion: String by settings
val springBootVersion: String by settings
val mortarVersion: String by settings
val ktlintVersion: String by settings
val detektVersion: String by settings
plugins {
id("se.ohou.mortar.plugin") version mortarVersion
id("org.jlleitschuh.gradle.ktlint") version ktlintVersion
id("io.gitlab.arturbosch.detekt") version detektVersion
id("org.springframework.boot") version springBootVersion
id("org.jetbrains.dokka") version kotlinVersion
kotlin("jvm") version kotlinVersion
kotlin("plugin.spring") version kotlinVersion
kotlin("plugin.jpa") version kotlinVersion apply false
kotlin("plugin.allopen") version kotlinVersion apply false
kotlin("plugin.noarg") version kotlinVersion apply false
}
repositories {
gradlePluginPortal()
}
}
728x90
'공부' 카테고리의 다른 글
Kubernetes helm (0) | 2022.07.31 |
---|---|
`Docker Container` vs `Virtual Machine` (0) | 2022.07.31 |
[github] auto-author-assign (0) | 2022.07.22 |
[MacOSX] ISO 8601 format (0) | 2022.07.20 |
[Presto] DATE_ADD, DATE_DIFF (0) | 2022.07.20 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 팔로워 수 세기
- 연애학개론
- 테슬라
- 모델y
- 개리마커스
- 유투브
- 테슬라 레퍼럴
- 어떻게 능력을 보여줄 것인가?
- 테슬라 리퍼럴 코드 혜택
- 테슬라 크레딧 사용
- 테슬라 레퍼럴 적용 확인
- 김달
- 테슬라 리퍼럴 코드
- 테슬라 레퍼럴 코드 확인
- 레퍼럴
- 클루지
- 테슬라 추천
- Bot
- 메디파크 내과 전문의 의학박사 김영수
- follower
- 모델 Y 레퍼럴
- Kluge
- 책그림
- 할인
- wlw
- COUNT
- 인스타그램
- 테슬라 리퍼럴 코드 생성
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
글 보관함