Terms of Service | Privacy Policy | Cookie Policy

Verified Commit 2c05e887 authored by Uwe Plonus's avatar Uwe Plonus
Browse files

Several adjustments to new infrastructure

parent 8fe95233
target/
public/
.idea/
*~
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
# 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).
......@@ -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>false</skipDeploy>
<skipDeploy>true</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://github.com/java-dojo/binary-search</url>
<developerConnection>scm:git:ssh://git@github.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>
......
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.
......
package com.github.javadojo.binarysearch;
package net.sw4j.javadojo.binarysearch;
/**
* An interface to do a search on an array.
......
......@@ -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"
# Binary Search
The documentation is found on the [project page](https://java-dojo.github.io/binary-search/).
......@@ -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>
......
package com.github.javadojo.binarysearch;
package net.sw4j.javadojo.binarysearch;
import org.testng.Assert;
import org.testng.annotations.Test;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment