-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added packages, gradle and initial classes
- Loading branch information
1 parent
fb8ab40
commit b649caa
Showing
14 changed files
with
941 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
|
||
|
||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm | ||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | ||
|
||
.idea/ | ||
|
||
# User-specific stuff: | ||
.idea/**/workspace.xml | ||
.idea/**/tasks.xml | ||
.idea/dictionaries | ||
|
||
# Sensitive or high-churn files: | ||
.idea/**/dataSources/ | ||
.idea/**/dataSources.ids | ||
.idea/**/dataSources.local.xml | ||
.idea/**/sqlDataSources.xml | ||
.idea/**/dynamic.xml | ||
.idea/**/uiDesigner.xml | ||
.local* | ||
|
||
|
||
# Gradle: | ||
.idea/**/gradle.xml | ||
.idea/**/libraries | ||
|
||
# CMake | ||
cmake-build-debug/ | ||
cmake-build-release/ | ||
|
||
# Mongo Explorer plugin: | ||
.idea/**/mongoSettings.xml | ||
|
||
## File-based project format: | ||
*.iws | ||
|
||
## Plugin-specific files: | ||
|
||
# IntelliJ | ||
out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Cursive Clojure plugin | ||
.idea/replstate.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
|
||
.gradle | ||
/build/ | ||
|
||
# ignore java builds | ||
java/build/*/* | ||
|
||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) | ||
!gradle-wrapper.jar | ||
|
||
# Cache of project | ||
.gradletasknamecache | ||
|
||
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 | ||
# gradle/wrapper/gradle-wrapper.properties | ||
|
||
# Build directory for read-the-docs | ||
/docs/_build/ | ||
|
||
gradle.properties | ||
*.key | ||
*.key.secret | ||
*.gpg | ||
|
||
python/fairsearchcore/__pycache__/ | ||
|
||
python/tests/__pycache__/ | ||
|
||
python/\.coverage | ||
|
||
fairsearch-core\.iml |
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 @@ | ||
language: java | ||
|
||
jdk: | ||
- oraclejdk8 | ||
|
||
script: | ||
- ./gradlew clean check | ||
|
||
after_success: | ||
- ./gradlew coveralls |
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,13 @@ | ||
Copyright 2019 Ivan Kitanovski | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
https://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
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,108 @@ | ||
buildscript { | ||
|
||
repositories { | ||
mavenCentral() | ||
jcenter() | ||
mavenLocal() | ||
} | ||
|
||
dependencies { | ||
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1' | ||
classpath "org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.2" | ||
} | ||
} | ||
|
||
group 'com.github.fair-search' | ||
version '1.0.0' | ||
|
||
apply plugin: 'java' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'idea' | ||
apply plugin: 'com.bmuschko.nexus' | ||
apply plugin: 'com.github.kt3k.coveralls' | ||
|
||
sourceCompatibility = 1.8 | ||
|
||
task fatJar(type: Jar) { | ||
manifest { | ||
attributes 'Implementation-Title': 'DELTR lib', | ||
'Implementation-Version': version | ||
} | ||
baseName = project.name + '-all' | ||
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } | ||
with jar | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
testCompile group: 'junit', name: 'junit', version: '4.12' | ||
} | ||
|
||
dependencies { | ||
compile "org.apache.lucene:lucene-expressions:7.1.0" | ||
|
||
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1' | ||
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.10' | ||
testCompile group: 'junit', name: 'junit', version: '4.12' | ||
testCompile group: 'com.mashape.unirest', name: 'unirest-java', version: '1.4.9' | ||
testCompile group: 'org.apache.lucene', name: 'lucene-test-framework', version: '7.1.0' | ||
testCompile 'pl.pragmatists:JUnitParams:1.1.1' | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
groupId 'com.github.fair-search' | ||
artifactId 'fairsearchdeltr-java' | ||
version '1.0.0' | ||
|
||
from components.java | ||
} | ||
} | ||
} | ||
|
||
modifyPom { | ||
project { | ||
name 'Fair Search DELTR' | ||
description 'A Java library for disparate exposure in ranking (a learning to rank approach)' | ||
url 'https://github.com/fair-search/fairsearchdeltr-java' | ||
inceptionYear '2018' | ||
scm { | ||
url 'https://github.com/fair-search/fairsearchdeltr-java' | ||
connection 'scm:https://github.com/fair-search/fairsearchdeltr-java.git' | ||
developerConnection 'scm:[email protected]:fair-search/fairsearchdeltr-java.git' | ||
} | ||
licenses { | ||
license { | ||
name 'The Apache Software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
distribution 'repo' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id 'ivan.kitanovski' | ||
name 'Ivan Kitanovski' | ||
email '[email protected]' | ||
} | ||
} | ||
} | ||
} | ||
extraArchive { | ||
sources = true | ||
tests = true | ||
javadoc = true | ||
} | ||
nexus { | ||
sign = true | ||
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2' | ||
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots' | ||
} | ||
|
||
//nexusStaging { | ||
// packageGroup = "org.github.fair-search" //optional if packageGroup == project.getGroup() | ||
// stagingProfileId = "org.github.fair-search" //when not defined will be got from server using "packageGroup" | ||
//} |
Binary file not shown.
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,6 @@ | ||
#Wed May 02 19:01:53 CEST 2018 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip |
Oops, something went wrong.