Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
Fjerner dependabot som egen task (#18)
Browse files Browse the repository at this point in the history
SanderOpperud authored Jan 22, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 5c5b6ae commit 958cf05
Showing 3 changed files with 2 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -7,6 +7,6 @@ updates:
open-pull-requests-limit: 10

- package-ecosystem: gradle
directory: "/dependabot/"
directory: "/"
schedule:
interval: daily
18 changes: 1 addition & 17 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -93,20 +93,4 @@ tasks.withType<ShadowJar> {

tasks.withType<Wrapper> {
gradleVersion = "6.7"
}

tasks.register("createDependabotFile") {
doLast {
mkdir("$projectDir/dependabot")
val file = File("$projectDir/dependabot/build.gradle")
file.writeText( "// Do not edit manually! This file was created by the 'createDependabotFile' task defined in the root build.gradle.kts file.\n")
file.appendText("dependencies {\n")
project.configurations.getByName("runtimeClasspath").allDependencies
.filter { it.group != rootProject.name && it.version != null }
.forEach { file.appendText(" compile '${it.group}:${it.name}:${it.version}'\n") }
project.configurations.getByName("testRuntimeClasspath").allDependencies
.filter { it.group != rootProject.name && it.version != null }
.forEach { file.appendText(" testCompile '${it.group}:${it.name}:${it.version}'\n") }
file.appendText("}\n")
}
}
}
29 changes: 0 additions & 29 deletions dependabot/build.gradle

This file was deleted.

0 comments on commit 958cf05

Please sign in to comment.