mirror of
https://github.com/ethauvin/bld.git
synced 2025-04-25 08:17:11 -07:00
Removed unused imports
This commit is contained in:
parent
ec01a626ae
commit
4ac6490dec
5 changed files with 7 additions and 5 deletions
|
@ -189,7 +189,13 @@ public abstract class ArtifactRetriever {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static URLConnection openUrlConnection(RepositoryArtifact artifact) throws IOException {
|
private static URLConnection openUrlConnection(RepositoryArtifact artifact) throws IOException {
|
||||||
var connection = new URL(artifact.location()).openConnection();
|
String location;
|
||||||
|
if (artifact.location().matches("[a-z][a-z0-9+\\-.]*://.*")) {
|
||||||
|
location = artifact.location();
|
||||||
|
} else {
|
||||||
|
location = new File(artifact.location()).toURI().toString();
|
||||||
|
}
|
||||||
|
var connection = new URL(location).openConnection();
|
||||||
connection.setUseCaches(false);
|
connection.setUseCaches(false);
|
||||||
connection.setRequestProperty("User-Agent", "bld " + BldVersion.getVersion());
|
connection.setRequestProperty("User-Agent", "bld " + BldVersion.getVersion());
|
||||||
return connection;
|
return connection;
|
||||||
|
|
|
@ -13,7 +13,6 @@ import java.util.List;
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
import static org.junit.jupiter.api.Assertions.assertNull;
|
|
||||||
|
|
||||||
public class TestJUnitOperation {
|
public class TestJUnitOperation {
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -19,7 +19,6 @@ import java.util.concurrent.TimeUnit;
|
||||||
import java.util.jar.JarFile;
|
import java.util.jar.JarFile;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
||||||
|
|
||||||
public class TestUberJarOperation {
|
public class TestUberJarOperation {
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
package rife.bld.operations;
|
package rife.bld.operations;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import rife.bld.dependencies.DependencyScopes;
|
|
||||||
import rife.bld.WebProject;
|
import rife.bld.WebProject;
|
||||||
import rife.bld.dependencies.*;
|
import rife.bld.dependencies.*;
|
||||||
import rife.tools.FileUtils;
|
import rife.tools.FileUtils;
|
||||||
|
|
|
@ -15,7 +15,6 @@ import java.util.jar.JarFile;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
||||||
|
|
||||||
public class TestWarOperation {
|
public class TestWarOperation {
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue