Skip to content

Commit

Permalink
Fix NPE when no configuration is applied
Browse files Browse the repository at this point in the history
Closes #1
  • Loading branch information
melix committed Nov 4, 2021
1 parent a012065 commit dd83cf7
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ on:
push:
branches:
- main
paths:
- 'docs/**'
jobs:
generate_documentation:
runs-on: ubuntu-18.04
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package me.champeau.gradle.igp

import me.champeau.includegit.AbstractFunctionalTest

class WellBehavedPluginFunctionalTest extends AbstractFunctionalTest {
def "can apply the plugin without any configuration"() {
withSample 'zeroconf'

when:
run 'help'

then:
tasks {
succeeded ':help'
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ private void readCheckoutMetadata() {
}

public void writeCheckoutMetadata() {
if (checkoutMetadata == null) {
return;
}
File metadataFile = getCheckoutsDirectory().file("checkouts.bin").get().getAsFile();
File parentFile = metadataFile.getParentFile();
parentFile.mkdirs();
Expand Down
7 changes: 7 additions & 0 deletions samples/zeroconf/groovy/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
plugins {
id 'java-library'
}

dependencies {
implementation 'com.acme.somelib:somelib1:0.0'
}
5 changes: 5 additions & 0 deletions samples/zeroconf/groovy/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
plugins {
id 'me.champeau.includegit'
}

rootProject.name = "zero"
7 changes: 7 additions & 0 deletions samples/zeroconf/kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
plugins {
`java-library`
}

dependencies {
implementation("com.acme.somelib:somelib1:0.0")
}
7 changes: 7 additions & 0 deletions samples/zeroconf/kotlin/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import me.champeau.gradle.igp.gitRepositories

plugins {
id("me.champeau.includegit")
}

rootProject.name = "zero"

0 comments on commit dd83cf7

Please sign in to comment.