File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
build-tools/src/integTest/groovy/org/elasticsearch/gradle/test Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ package org.elasticsearch.gradle.test
2+
3+ import org.elasticsearch.gradle.fixtures.AbstractGradleFuncTest
4+ import org.gradle.testkit.runner.TaskOutcome
5+
6+ class TestBuildInfoPluginFuncTest extends AbstractGradleFuncTest {
7+ def " works" () {
8+ given :
9+ file(" src/main/java/com/example/Example.java" ) << """
10+ package com.example;
11+
12+ public class Example {
13+ }
14+ """
15+
16+ file(" src/main/java/module-info.java" ) << """
17+ module com.example {
18+ exports com.example;
19+ }
20+ """
21+
22+ buildFile << """
23+ plugins {
24+ id 'elasticsearch.test-build-info'
25+ id 'java'
26+ }
27+
28+ repositories {
29+ mavenCentral()
30+ }
31+
32+ dependencies {
33+ }
34+ """
35+
36+ when :
37+ def result = gradleRunner(' generateTestBuildInfo' ). build()
38+
39+ then :
40+ result. task(" :test" ). outcome == TaskOutcome . SUCCESS
41+ }
42+ }
You can’t perform that action at this time.
0 commit comments