Remove Travis/CI from inherited repo as we'll be reconfiguring this soon. Update pom to reference Onshape, not 'gburd'.

This commit is contained in:
Greg Burd 2017-07-27 15:12:56 -04:00
parent 715fb0e673
commit b98f9ed7f5
4 changed files with 27 additions and 72 deletions

View file

@ -1,21 +0,0 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository />
<interactiveMode />
<usePluginRegistry />
<offline />
<pluginGroups />
<servers>
<server>
<id>sonatype-nexus-snapshots</id>
<username>${env.OSS_USERNAME}</username>
<password>${env.OSS_PASSWORD}</password>
</server>
</servers>
<mirrors />
<proxies />
<profiles />
<activeProfiles />
</settings>

View file

@ -1,8 +0,0 @@
language: java
script: mvn deploy --settings .travis-oss-settings.xml
jdk:
- oraclejdk8
env:
global:
- OSS_USERNAME=3Lzxrh8k
- secure: U8xjxbMSNTEhJZLQMRiGT4LP1wsUqczlPRO68J5Yo9VG15SKGIDV6xfAcnhNEVUUL47Ubwkmzk2JO+tKgqsXM9O9KgXEAmEV4mdoBP48OFw85u+nUrbbKGDHd2sA9tBjvu0meqxffdIge7f3nNLEmzJHke5ru+yo2204EvSZYHc=

View file

@ -1,7 +1,6 @@
# helenus # Helenus
Fast and easy, functional style cutting edge Java 8 and Scala 2.11 Cassandra client Fast and easy, functional style cutting edge Java 8 and Scala 2.11 Cassandra client for C* 3.x
Current status: First application in production (may be more)
### Features ### Features
@ -14,11 +13,11 @@ Current status: First application in production (may be more)
### Requirements ### Requirements
* Latest JVM 8 * JVM 8
* Latest Datastax Driver 2.1.5 * Datastax Driver 3.x
* Latest Cassandra 2.1.4 * Cassandra 3.x
* Latest Scala 2.11 * Scala 2.11+
* Latest Maven as well * Maven
### Maven ### Maven
@ -59,7 +58,7 @@ Active development dependency for Scala 2.11:
Model definition: Model definition:
``` ```
@Table("timelines") @Table
public interface Timeline { public interface Timeline {
@PartitionKey @PartitionKey
@ -77,14 +76,14 @@ public interface Timeline {
Session initialization: Session initialization:
``` ```
Timeline timeline = Helenus.dsl(Timeline.class);
HelenusSession session = Helenus.init(getSession()).showCql().add(Timeline.class).autoCreateDrop().get(); HelenusSession session = Helenus.init(getSession()).showCql().add(Timeline.class).autoCreateDrop().get();
Timeline timeline = Helenus.dsl(Timeline.class, session.getMetadata());
``` ```
Select example: Select example:
``` ```
session.select(timeline::userId, timeline::timestamp, timeline::text) session.select(timeline::userId, timeline::timestamp, timeline::text)
.where(timeline::userId, Query.eq(userId)) .where(timeline::userId, eq(userId))
.orderBy(Query.desc(timeline::timestamp)).limit(5).sync() .orderBy(Query.desc(timeline::timestamp)).limit(5).sync()
.forEach(System.out::println); .forEach(System.out::println);
``` ```
@ -104,18 +103,12 @@ Account model:
``` ```
@Table @Table
public interface Account { public interface Account {
@PartitionKey @PartitionKey
String accountId(); String accountId();
Date createdAt(); Date createdAt();
String organization(); String organization();
String team(); String team();
String timezone(); String timezone();
Map<String, AccountUser> users(); Map<String, AccountUser> users();
} }
``` ```
@ -124,22 +117,16 @@ AccountUser model:
``` ```
@UDT @UDT
public interface AccountUser { public interface AccountUser {
String email(); String email();
String firstName(); String firstName();
String lastName(); String lastName();
} }
``` ```
Abstract repository: Abstract repository:
``` ```
public interface AbstractRepository { public interface AbstractRepository {
HelenusSession session(); HelenusSession session();
} }
``` ```
@ -150,9 +137,7 @@ import scala.concurrent.Future;
public interface AccountRepository extends AbstractRepository { public interface AccountRepository extends AbstractRepository {
static final Account account = Helenus.dsl(Account.class); static final Account account = Helenus.dsl(Account.class);
static final String DEFAULT_TIMEZONE = "America/Los_Angeles"; static final String DEFAULT_TIMEZONE = "America/Los_Angeles";
default Future<Optional<Account>> findAccount(String accountId) { default Future<Optional<Account>> findAccount(String accountId) {
return session() return session()
@ -160,7 +145,6 @@ public interface AccountRepository extends AbstractRepository {
.where(account::accountId, eq(accountId)) .where(account::accountId, eq(accountId))
.single() .single()
.future(); .future();
} }
default Future<Fun.Tuple2<ResultSet, String>> createAccount( default Future<Fun.Tuple2<ResultSet, String>> createAccount(

View file

@ -22,13 +22,13 @@
<scm> <scm>
<url>https://github.net.helenus</url> <url>https://github.net.helenus</url>
<connection>scm:git:git@github.com:gburd/helenus.git</connection> <connection>scm:git:git@github.com:onshape/helenus.git</connection>
<developerConnection>scm:git:git@github.com:gburd/helenus.git</developerConnection> <developerConnection>scm:git:git@github.com:onshape/helenus.git</developerConnection>
</scm> </scm>
<issueManagement> <issueManagement>
<system>GitHub</system> <system>GitHub</system>
<url>https://github.com/gburd/helenus/issues</url> <url>https://github.com/onshape/helenus/issues</url>
</issueManagement> </issueManagement>
<parent> <parent>