-
Notifications
You must be signed in to change notification settings - Fork 540
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
304 changed files
with
712 additions
and
931 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
val deps: Map<String, String> by extra | ||
|
||
dependencies { | ||
implementation(project(":shims")) | ||
|
||
testImplementation("junit:junit:${deps["junit"]}") | ||
testImplementation("com.google.guava:guava:${deps["guava"]}") | ||
testImplementation("org.apache.commons:commons-lang3:${deps["commons-lang"]}") | ||
testImplementation("com.esotericsoftware:kryo:5.0.0-RC1") | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
import com.jfrog.bintray.gradle.BintrayExtension | ||
|
||
plugins { | ||
id("net.researchgate.release") version "2.8.0" | ||
id("com.jfrog.bintray") version "1.8.4" apply false | ||
id("com.github.kt3k.coveralls") version "2.8.4" apply false | ||
} | ||
|
||
// some parts of the Kotlin DSL don't work inside a `subprojects` block yet, so we do them the old way | ||
// (without typesafe accessors) | ||
|
||
subprojects { | ||
// used in per-subproject dependencies | ||
@Suppress("UNUSED_VARIABLE") val deps by extra { | ||
mapOf( | ||
"junit" to "4.12", | ||
"guava" to "20.0", | ||
"commons-lang" to "3.4" | ||
) | ||
} | ||
|
||
apply(plugin = "java-library") | ||
apply(plugin = "jacoco") | ||
apply(plugin = "com.github.kt3k.coveralls") | ||
|
||
repositories { | ||
jcenter() | ||
} | ||
|
||
tasks.withType<JavaCompile> { | ||
options.isDeprecation = true | ||
options.isWarnings = true | ||
} | ||
|
||
configure<JavaPluginConvention> { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
group = "org.roaringbitmap" | ||
} | ||
|
||
tasks.named<JacocoReport>("jacocoTestReport") { | ||
reports { | ||
// used by coveralls | ||
xml.isEnabled = true | ||
} | ||
} | ||
} | ||
|
||
subprojects.filter { !listOf("jmh", "fuzz-tests", "examples", "simplebenchmark").contains(it.name) }.forEach { | ||
it.run { | ||
apply(plugin = "checkstyle") | ||
|
||
tasks.withType<Checkstyle> { | ||
configFile = File(rootProject.projectDir, "RoaringBitmap/style/roaring_google_checks.xml") | ||
isIgnoreFailures = false | ||
isShowViolations = true | ||
} | ||
|
||
// don't checkstyle source | ||
tasks.named<Checkstyle>("checkstyleTest") { | ||
exclude("**/**") | ||
} | ||
} | ||
} | ||
|
||
subprojects.filter { listOf("RoaringBitmap", "shims").contains(it.name) }.forEach { project -> | ||
project.run { | ||
apply(plugin = "maven-publish") | ||
apply(plugin = "com.jfrog.bintray") | ||
|
||
tasks { | ||
register<Jar>("sourceJar") { | ||
from(project.the<SourceSetContainer>()["main"].allJava) | ||
archiveClassifier.set("sources") | ||
} | ||
|
||
register<Jar>("docJar") { | ||
from(project.tasks["javadoc"]) | ||
archiveClassifier.set("javadoc") | ||
} | ||
} | ||
|
||
configure<PublishingExtension>() { | ||
publications { | ||
register<MavenPublication>("bintray") { | ||
groupId = project.group.toString() | ||
artifactId = project.name | ||
version = project.version.toString() | ||
|
||
from(components["java"]) | ||
artifact(tasks["sourceJar"]) | ||
artifact(tasks["docJar"]) | ||
|
||
// requirements for maven central | ||
// https://central.sonatype.org/pages/requirements.html | ||
pom { | ||
name.set("${project.group}:${project.name}") | ||
description.set("Roaring bitmaps are compressed bitmaps (also called bitsets) which tend to outperform conventional compressed bitmaps such as WAH or Concise.") | ||
url.set("https://github.com/RoaringBitmap/RoaringBitmap") | ||
issueManagement { | ||
system.set("GitHub Issue Tracking") | ||
url.set("https://github.com/RoaringBitmap/RoaringBitmap/issues") | ||
} | ||
licenses { | ||
license { | ||
name.set("Apache 2") | ||
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") | ||
distribution.set("repo") | ||
} | ||
} | ||
developers { | ||
developer { | ||
id.set("lemire") | ||
name.set("Daniel Lemire") | ||
email.set("lemire@gmail.com") | ||
url.set("http://lemire.me/en/") | ||
roles.addAll("architect", "developer", "maintainer") | ||
timezone.set("-5") | ||
properties.put("picUrl", "http://lemire.me/fr/images/JPG/profile2011B_152.jpg") | ||
} | ||
} | ||
scm { | ||
connection.set("scm:git:https://github.com/RoaringBitmap/RoaringBitmap.git") | ||
developerConnection.set("scm:git:https://github.com/RoaringBitmap/RoaringBitmap.git") | ||
url.set("https://github.com/RoaringBitmap/RoaringBitmap") | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
configure<BintrayExtension> { | ||
user = rootProject.findProperty("bintrayUser")?.toString() | ||
key = rootProject.findProperty("bintrayApiKey")?.toString() | ||
setPublications("bintray") | ||
|
||
with(pkg) { | ||
repo = "maven" | ||
setLicenses("Apache-2.0") | ||
vcsUrl = "https://github.com/RoaringBitmap/RoaringBitmap" | ||
// use "bintray package per artifact" to match the auto-gen'd pkg structure inherited from | ||
// Maven Central's artifacts | ||
name = "org.roaringbitmap:${project.name}" | ||
userOrg = "roaringbitmap" | ||
|
||
with(version) { | ||
name = project.version.toString() | ||
released = java.util.Date().toString() | ||
vcsTag = "RoaringBitmap-${project.version}" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
tasks { | ||
create("build") { | ||
// dummy build task to appease release plugin | ||
} | ||
} | ||
|
||
release { | ||
tagTemplate = "RoaringBitmap-\$version" | ||
} | ||
|
||
tasks.afterReleaseBuild { | ||
dependsOn(tasks.named("bintrayUpload")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
From the root dir, run: | ||
|
||
``` | ||
./gradlew :examples:runAll | ||
``` | ||
|
||
Or see tasks to run each one individually: | ||
|
||
``` | ||
./gradlew :examples:tasks --all | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
dependencies { | ||
implementation(project(":RoaringBitmap")) | ||
} | ||
|
||
tasks { | ||
val runAll by registering {} | ||
|
||
File(project.projectDir, "src/main/java").list().forEach { | ||
val className = it.replace(".java", "") | ||
val childTask = project.tasks.create("runExample$className", JavaExec::class) { | ||
main = className | ||
classpath = sourceSets.main.get().runtimeClasspath | ||
dependsOn(compileJava) | ||
} | ||
|
||
runAll.get().dependsOn(childTask) | ||
} | ||
} |
Oops, something went wrong.