Compare commits
No commits in common. "1.0.0" and "master" have entirely different histories.
@ -32,7 +32,7 @@
|
|||||||
<attribute name="gradle_used_by_scope" value="builder"/>
|
<attribute name="gradle_used_by_scope" value="builder"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21/"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
|
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
|
||||||
<classpathentry kind="output" path="bin/default"/>
|
<classpathentry kind="output" path="bin/default"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|||||||
94
build.gradle
94
build.gradle
@ -1,7 +1,6 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'java-library'
|
id 'java-library'
|
||||||
id "jacoco"
|
id "jacoco"
|
||||||
id "com.vanniktech.maven.publish" version "0.28.0"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
@ -332,49 +331,50 @@ tasks.withType(PublishToMavenLocal) {
|
|||||||
//Maven central Start
|
//Maven central Start
|
||||||
//Disabling due to java8 incompat, only needed to manually publishing anyways
|
//Disabling due to java8 incompat, only needed to manually publishing anyways
|
||||||
|
|
||||||
signing.useGpgCmd()
|
//signing.useGpgCmd()
|
||||||
|
//
|
||||||
import com.vanniktech.maven.publish.SonatypeHost
|
//import com.vanniktech.maven.publish.SonatypeHost
|
||||||
import com.vanniktech.maven.publish.JavaLibrary
|
//import com.vanniktech.maven.publish.JavaLibrary
|
||||||
import com.vanniktech.maven.publish.JavadocJar
|
//import com.vanniktech.maven.publish.JavadocJar
|
||||||
|
//
|
||||||
mavenPublishing {
|
//mavenPublishing {
|
||||||
configure(new JavaLibrary(new JavadocJar.None(), true))
|
// configure(new JavaLibrary(new JavadocJar.None(), true))
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
mavenPublishing {
|
//mavenPublishing {
|
||||||
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
|
// publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
|
||||||
|
//
|
||||||
signAllPublications()
|
// signAllPublications()
|
||||||
pom {
|
// pom {
|
||||||
name = 'Primitive Collections'
|
// name = 'Primitive Collections'
|
||||||
description = 'A Primitive Collection library that reduces memory usage and improves performance'
|
// description = 'A Primitive Collection library that reduces memory usage and improves performance'
|
||||||
url = 'https://github.com/Speiger/Primitive-Collections'
|
// url = 'https://github.com/Speiger/Primitive-Collections'
|
||||||
version = project.version
|
// version = project.version
|
||||||
group = 'io.github.speiger'
|
// group = 'io.github.speiger'
|
||||||
licenses {
|
// licenses {
|
||||||
license {
|
// license {
|
||||||
name = 'The Apache License, Version 2.0'
|
// name = 'The Apache License, Version 2.0'
|
||||||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
// url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
developers {
|
// developers {
|
||||||
developer {
|
// developer {
|
||||||
id = 'speiger'
|
// id = 'speiger'
|
||||||
name = 'Speiger'
|
// name = 'Speiger'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
scm {
|
// scm {
|
||||||
connection = 'scm:git:git://github.com/Speiger/Primitive-Collections.git'
|
// connection = 'scm:git:git://github.com/Speiger/Primitive-Collections.git'
|
||||||
developerConnection = 'scm:git:ssh://github.com:Speiger/Primitive-Collections.git'
|
// developerConnection = 'scm:git:ssh://github.com:Speiger/Primitive-Collections.git'
|
||||||
url = 'https://github.com/Speiger/Primitive-Collections'
|
// url = 'https://github.com/Speiger/Primitive-Collections'
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
issueManagement {
|
// issueManagement {
|
||||||
system = 'github'
|
// system = 'github'
|
||||||
url = 'https://github.com/Speiger/Primitive-Collections/issues'
|
// url = 'https://github.com/Speiger/Primitive-Collections/issues'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
@ -3,4 +3,4 @@ org.gradle.jvmargs=-Xmx3G
|
|||||||
maxMemory = 2048m
|
maxMemory = 2048m
|
||||||
testThreads = 4
|
testThreads = 4
|
||||||
|
|
||||||
RELEASE_VERSION = 1.0.0
|
RELEASE_VERSION = 0.9.0
|
||||||
@ -1,5 +1,5 @@
|
|||||||
jdk:
|
jdk:
|
||||||
- openjdk21
|
- openjdk9
|
||||||
install:
|
install:
|
||||||
- chmod +x ./gradlew
|
- chmod +x ./gradlew
|
||||||
- ./gradlew build publishToMavenLocal
|
- ./gradlew build publishToMavenLocal
|
||||||
|
|||||||
@ -23,10 +23,10 @@ public abstract class BaseInt2IntOrderedMapTest extends BaseInt2IntMapTest
|
|||||||
{
|
{
|
||||||
if(!getValidOrderedMapTests().contains(OrderedMapTests.PUT_MOVE)) return;
|
if(!getValidOrderedMapTests().contains(OrderedMapTests.PUT_MOVE)) return;
|
||||||
Int2IntOrderedMap map = createMap(TEST_ARRAY, TEST_ARRAY);
|
Int2IntOrderedMap map = createMap(TEST_ARRAY, TEST_ARRAY);
|
||||||
Assert.assertEquals(-1, map.putAndMoveToFirst(120, -1));
|
Assert.assertEquals(0, map.putAndMoveToFirst(120, -1));
|
||||||
Assert.assertEquals(120, map.firstIntKey());
|
Assert.assertEquals(120, map.firstIntKey());
|
||||||
Assert.assertEquals(-1, map.firstIntValue());
|
Assert.assertEquals(-1, map.firstIntValue());
|
||||||
Assert.assertEquals(-1, map.putAndMoveToLast(121, -2));
|
Assert.assertEquals(0, map.putAndMoveToLast(121, -2));
|
||||||
Assert.assertEquals(121, map.lastIntKey());
|
Assert.assertEquals(121, map.lastIntKey());
|
||||||
Assert.assertEquals(-2, map.lastIntValue());
|
Assert.assertEquals(-2, map.lastIntValue());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user