Skip to content

Commit

Permalink
COPCD-40: Configured publishing plugin.
Browse files Browse the repository at this point in the history
COPCD-40: Configured publishing plugin.
  • Loading branch information
ziswb committed Dec 17, 2024
1 parent 4c82928 commit 04cb99d
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 9 deletions.
18 changes: 17 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,31 @@ plugins {
alias(libs.plugins.detekt)
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.spotless)
id ("com.gradle.plugin-publish") version "1.3.0"
}

group = "ch.ergon.todochecker"
version = "0.0.1"

publishing {
repositories {
maven {
name = "local"
url = uri(layout.buildDirectory.dir("local-repo"))
}
}
}

gradlePlugin {
website = "https://github.com/ergon/todo-checker"
vcsUrl = "https://github.com/ergon/todo-checker"
plugins {
register("todoChecker") {
create("todoChecker") {
id = "ch.ergon.todochecker"
implementationClass = "ch.ergon.todochecker.TodoCheckerPlugin"
displayName = "ToDo Checker Plug-In for JIRA"
description = "The Plug-In checks the source code for dangling TODO/FIXME-comments that refer to resolved JIRA tickets."
tags = listOf("kotlin", "java", "jira", "todo", "fixme")
}
}
}
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 4 additions & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#

##############################################################################
#
Expand Down Expand Up @@ -84,7 +86,8 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
2 changes: 2 additions & 0 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem

@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
Expand Down
9 changes: 2 additions & 7 deletions src/main/kotlin/ch/ergon/todochecker/TodoScanner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,8 @@ internal class TodoScanner internal constructor(
private val todoRegex: String?,
) {
private val logger = Logging.getLogger(TodoScanner::class.java)
private val exclusions: String
private val inclusions: String

init {
this.exclusions = "glob:{" + exclusions.joinToString(separator = ",") + "}"
this.inclusions = "glob:{" + inclusions.joinToString(separator = ",") + "}"
}
private val exclusions: String = "glob:{" + exclusions.joinToString(separator = ",") + "}"
private val inclusions: String = "glob:{" + inclusions.joinToString(separator = ",") + "}"

/**
* Walks over all files in the directory and returns a mapping between Jira issues and files.
Expand Down

0 comments on commit 04cb99d

Please sign in to comment.