|
1 | 1 | /*
|
2 |
| - * Copyright 2012-2021 the original author or authors. |
| 2 | + * Copyright 2012-2022 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -105,14 +105,8 @@ void sourceJarIsBuilt() throws IOException {
|
105 | 105 | out.println("version = '1.2.3'");
|
106 | 106 | out.println("sourceCompatibility = '1.8'");
|
107 | 107 | out.println("description 'Test'");
|
108 |
| - out.println("repositories {"); |
109 |
| - out.println(" mavenCentral()"); |
110 |
| - out.println("}"); |
111 |
| - out.println("dependencies {"); |
112 |
| - out.println(" implementation(platform(\"org.junit:junit-bom:5.6.0\"))"); |
113 |
| - out.println("}"); |
114 | 108 | }
|
115 |
| - runGradle("build"); |
| 109 | + runGradle("assemble"); |
116 | 110 | File file = new File(this.projectDir, "/build/libs/" + this.projectDir.getName() + "-1.2.3-sources.jar");
|
117 | 111 | assertThat(file).exists();
|
118 | 112 | try (JarFile jar = new JarFile(file)) {
|
@@ -140,14 +134,8 @@ void javadocJarIsBuilt() throws IOException {
|
140 | 134 | out.println("version = '1.2.3'");
|
141 | 135 | out.println("sourceCompatibility = '1.8'");
|
142 | 136 | out.println("description 'Test'");
|
143 |
| - out.println("repositories {"); |
144 |
| - out.println(" mavenCentral()"); |
145 |
| - out.println("}"); |
146 |
| - out.println("dependencies {"); |
147 |
| - out.println(" implementation(platform(\"org.junit:junit-bom:5.6.0\"))"); |
148 |
| - out.println("}"); |
149 | 137 | }
|
150 |
| - runGradle("build"); |
| 138 | + runGradle("assemble"); |
151 | 139 | File file = new File(this.projectDir, "/build/libs/" + this.projectDir.getName() + "-1.2.3-javadoc.jar");
|
152 | 140 | assertThat(file).exists();
|
153 | 141 | try (JarFile jar = new JarFile(file)) {
|
|
0 commit comments