Skip to content

Commit

Permalink
feat: Add support for gradle's kotlin-dsl
Browse files Browse the repository at this point in the history
As of gradle v5, kotlin-dsl is now official. It still uses the
same old methods as gradle but the detection of those project with
snyk was broken. This patch adds the support for gradle kotlin-dsl

Kotlin-dsl: https://github.com/gradle/kotlin-dsl/
News here: https://github.com/gradle/gradle/releases/tag/v5.0.0-RC2#kotlin-dsl-1.0
  • Loading branch information
pastjean authored and Kirill89 committed Mar 18, 2019
1 parent d956d67 commit 825332a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/detect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const DETECTABLE_FILES = [
'Gemfile.lock',
'pom.xml',
'build.gradle',
'build.gradle.kts',
'build.sbt',
'Pipfile',
'requirements.txt',
Expand All @@ -34,6 +35,7 @@ const DETECTABLE_PACKAGE_MANAGERS = {
'package-lock.json': 'npm',
'pom.xml': 'maven',
'build.gradle': 'gradle',
'build.gradle.kts': 'gradle',
'build.sbt': 'sbt',
'yarn.lock': 'yarn',
'package.json': 'npm',
Expand Down

0 comments on commit 825332a

Please sign in to comment.