Skip to content

Commit

Permalink
add gradle e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwareus committed Oct 30, 2023
1 parent 2ec5a26 commit 087dbc9
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ test/resolve/testdata/nuget/**/obj
debricked.fingerprints.wfp
test/resolve/testdata/gomod/gomod.debricked.lock
test/resolve/testdata/maven/maven.debricked.lock
test/resolve/testdata/gradle/*/**
**.gradle-init-script.debricked.groovy
test/resolve/testdata/gradle/gradle.debricked.lock
6 changes: 6 additions & 0 deletions test/resolve/resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ func TestResolves(t *testing.T) {
lockFileName: "maven.debricked.lock",
packageManager: "maven",
},
{
name: "basic build.gradle",
manifestFile: "testdata/gradle/build.gradle",
lockFileName: "gradle.debricked.lock",
packageManager: "gradle",
},
}

for _, cT := range cases {
Expand Down
16 changes: 16 additions & 0 deletions test/resolve/testdata/gradle/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
plugins {
id 'java'
}

repositories {
mavenCentral()
}

dependencies {
implementation 'org.apache.logging.log4j:log4j-core:2.20.0'
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

0 comments on commit 087dbc9

Please sign in to comment.