Terms of Service
|
Privacy Policy
|
Cookie Policy
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
java-dojo
binary-search
Commits
2c05e887
Verified
Commit
2c05e887
authored
Jun 30, 2018
by
Uwe Plonus
Browse files
Several adjustments to new infrastructure
parent
8fe95233
Changes
10
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
2c05e887
target/
public/
.idea/
*~
.gitlab-ci.yml
0 → 100644
View file @
2c05e887
image
:
$CI_REGISTRY/sw4j-net/jdk8-maven3
pages
:
stage
:
deploy
script
:
-
mvn clean site post-site
-
cp -r target/staging public
artifacts
:
paths
:
-
public
only
:
-
master
README.md
View file @
2c05e887
# Binary Search
The documentation is found on the
[
project page
](
https://java-dojo.github.io/binary-search
)
.
# FizzBuzz
The documentation is found on the
[
project page
](
https://java-dojo.pages.sw4j.net/binary-search
)
and on the
[
mirror
](
https://java-dojo.gitlab.io/binary-search
)
.
pom.xml
View file @
2c05e887
...
...
@@ -4,13 +4,13 @@
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.github
.java-dojo
</groupId>
<groupId>
net.sw4j
.java-dojo
</groupId>
<artifactId>
binary-search
</artifactId>
<version>
0.1.0-SNAPSHOT
</version>
<packaging>
jar
</packaging>
<name>
Java Dojo - Binary Search
</name>
<url>
https://java-dojo.
github.io
/binary-search/
</url>
<url>
https://java-dojo.
pages.sw4j.net
/binary-search/
</url>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
...
...
@@ -61,34 +61,17 @@
<artifactId>
maven-site-plugin
</artifactId>
<executions>
<execution>
<id>
stage-for-
scm-
publish
</id>
<id>
stage-for-publish
</id>
<phase>
post-site
</phase>
<goals>
<goal>
stage
</goal>
</goals>
<configuration>
<skipDeploy>
fals
e
</skipDeploy>
<skipDeploy>
tru
e
</skipDeploy>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-scm-publish-plugin
</artifactId>
<version>
${scm-publish.plugin.version}
</version>
<configuration>
<scmBranch>
gh-pages
</scmBranch>
</configuration>
<executions>
<execution>
<id>
scm-publish
</id>
<phase>
site-deploy
</phase>
<goals>
<goal>
publish-scm
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
...
@@ -117,19 +100,27 @@
</reports>
</reportSet>
</reportSets>
<configuration>
<javaApiLinks>
<property>
<name>
api_1.8
</name>
<value>
https://docs.oracle.com/javase/8/docs/api/
</value>
</property>
</javaApiLinks>
</configuration>
</plugin>
</plugins>
</reporting>
<scm>
<url>
https://git
hub.com
/java-dojo/binary-search
</url>
<developerConnection>
scm:git:ssh://git@git
hub.com/
java-dojo/binary-search.git
</developerConnection>
<url>
https://git
.sw4j.net
/java-dojo/binary-search
</url>
<developerConnection>
scm:git:ssh://git@git
.sw4j.net:
java-dojo/binary-search.git
</developerConnection>
</scm>
<distributionManagement>
<site>
<id>
github
</id>
<url>
scm:git:ssh://git@github.com/java-dojo
/binary-search
.git
</url>
<id>
public
</id>
<url>
https://java-dojo.pages.sw4j.net
/binary-search
</url>
</site>
</distributionManagement>
...
...
src/main/java/
com/github
/javadojo/binarysearch/BinarySearch.java
→
src/main/java/
net/sw4j
/javadojo/binarysearch/BinarySearch.java
View file @
2c05e887
package
com.github
.javadojo.binarysearch
;
package
net.sw4j
.javadojo.binarysearch
;
/**
* A class to perform a binary search on a sorted array of {@code int}s.
...
...
src/main/java/
com/github
/javadojo/binarysearch/Search.java
→
src/main/java/
net/sw4j
/javadojo/binarysearch/Search.java
View file @
2c05e887
package
com.github
.javadojo.binarysearch
;
package
net.sw4j
.javadojo.binarysearch
;
/**
* An interface to do a search on an array.
...
...
src/site/markdown/index.md.vm
View file @
2c05e887
...
...
@@ -52,5 +52,5 @@ To perform this exercise you need a JDK 8 and Maven 3.3.x.
* [Rosetta Code][rcbs]
[abs]:
https://java-dojo.github.io
/advanced-binary-search "Advanced Binary Search"
[abs]:
..
/advanced-binary-search "Advanced Binary Search"
[rcbs]: http://rosettacode.org/wiki/Binary_search "Rosetta Code - Binary Search"
src/site/resources/README.md
deleted
100644 → 0
View file @
8fe95233
# Binary Search
The documentation is found on the
[
project page
](
https://java-dojo.github.io/binary-search/
)
.
src/site/site.xml
View file @
2c05e887
...
...
@@ -29,7 +29,7 @@
<br
/>
<span
xmlns:dct=
"http://purl.org/dc/terms/"
property=
"dct:title"
>
Java Dojo
</span>
<span>
by
</span>
<a
xmlns:cc=
"http://creativecommons.org/ns#"
href=
"https://java-dojo.
github.io
"
property=
"cc:attributionName"
rel=
"cc:attributionURL"
>
https://java-dojo.
github.io
</a>
<a
xmlns:cc=
"http://creativecommons.org/ns#"
href=
"https://java-dojo.
pages.sw4j.net
"
property=
"cc:attributionName"
rel=
"cc:attributionURL"
>
https://java-dojo.
pages.sw4j.net
</a>
<span>
is licensed under a
</span>
<a
rel=
"license"
href=
"http://creativecommons.org/licenses/by-sa/4.0/"
>
Creative Commons Attribution-ShareAlike 4.0 International License
</a>
<span>
.
</span>
...
...
src/test/java/
com/github
/javadojo/binarysearch/BinarySearchTest.java
→
src/test/java/
net/sw4j
/javadojo/binarysearch/BinarySearchTest.java
View file @
2c05e887
package
com.github
.javadojo.binarysearch
;
package
net.sw4j
.javadojo.binarysearch
;
import
org.testng.Assert
;
import
org.testng.annotations.Test
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment