Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
CTF
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grzegorz
CTF
Commits
816e642d
Commit
816e642d
authored
Feb 08, 2017
by
Grzegorz Pietrusza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stub of immutable task
parent
d229ba40
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
176 additions
and
11 deletions
+176
-11
pom.xml
ctf-common/pom.xml
+155
-0
Immutable.java
...java/com/telephoners/krakyournet/ctf/beans/Immutable.java
+1
-1
Task.java
...main/java/com/telephoners/krakyournet/ctf/beans/Task.java
+16
-0
Repository.java
...rc/main/java/com/jifwin/ctf/db/repository/Repository.java
+4
-0
AbstractTestBean.java
...rs/krakyournet/ctf/beans/immutables/AbstractTestBean.java
+0
-10
No files found.
ctf-common/pom.xml
0 → 100644
View file @
816e642d
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
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>
ctf-group
</groupId>
<artifactId>
ctf-common
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<dependencies>
<dependency>
<groupId>
org.mongodb.morphia
</groupId>
<artifactId>
morphia
</artifactId>
<version>
1.0.0-rc0
</version>
</dependency>
<dependency>
<groupId>
io.dropwizard
</groupId>
<artifactId>
dropwizard-core
</artifactId>
<version>
0.9.0
</version>
</dependency>
<dependency>
<groupId>
io.dropwizard
</groupId>
<artifactId>
dropwizard-auth
</artifactId>
<version>
0.9.0-rc3
</version>
</dependency>
<dependency>
<groupId>
org.mongodb
</groupId>
<artifactId>
mongo-java-driver
</artifactId>
<version>
3.1.0
</version>
</dependency>
<dependency>
<groupId>
com.google.inject
</groupId>
<artifactId>
guice
</artifactId>
<version>
4.0
</version>
<exclusions>
<exclusion>
<artifactId>
guava
</artifactId>
<groupId>
com.google.guava
</groupId>
</exclusion>
<exclusion>
<groupId>
javax.inject
</groupId>
<artifactId>
javax.inject
</artifactId>
</exclusion>
<exclusion>
<groupId>
aopalliance
</groupId>
<artifactId>
aopalliance
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpclient
</artifactId>
<version>
4.5.1
</version>
</dependency>
<dependency>
<groupId>
io.dropwizard
</groupId>
<artifactId>
dropwizard-assets
</artifactId>
<version>
0.9.0
</version>
</dependency>
<dependency>
<groupId>
org.webjars
</groupId>
<artifactId>
jquery
</artifactId>
<version>
2.1.4
</version>
</dependency>
<dependency>
<groupId>
org.webjars
</groupId>
<artifactId>
materializecss
</artifactId>
<version>
0.97.5
</version>
</dependency>
<dependency>
<groupId>
org.webjars
</groupId>
<artifactId>
angularjs
</artifactId>
<version>
1.4.7
</version>
</dependency>
<dependency>
<groupId>
org.webjars
</groupId>
<artifactId>
angular-ui-router
</artifactId>
<version>
0.2.17
</version>
</dependency>
<dependency>
<groupId>
org.webjars
</groupId>
<artifactId>
font-awesome
</artifactId>
<version>
4.5.0
</version>
</dependency>
<dependency>
<groupId>
org.webjars.bower
</groupId>
<artifactId>
angular-cookies
</artifactId>
<version>
1.4.5
</version>
</dependency>
<dependency>
<groupId>
commons-collections
</groupId>
<artifactId>
commons-collections
</artifactId>
<version>
3.2.1
</version>
</dependency>
<dependency>
<groupId>
com.bazaarvoice.dropwizard
</groupId>
<artifactId>
dropwizard-webjars-bundle
</artifactId>
<version>
0.2.1
</version>
<exclusions>
<exclusion>
<artifactId>
io.dropwizard
</artifactId>
<groupId>
dropwizard-core
</groupId>
</exclusion>
<exclusion>
<artifactId>
guava
</artifactId>
<groupId>
com.google.guava
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
commons-io
</groupId>
<artifactId>
commons-io
</artifactId>
<version>
2.4
</version>
</dependency>
<dependency>
<groupId>
org.immutables
</groupId>
<artifactId>
value
</artifactId>
<version>
2.4.3
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.lightcouch
</groupId>
<artifactId>
lightcouch
</artifactId>
<version>
0.1.8
</version>
</dependency>
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.mockito
</groupId>
<artifactId>
mockito-core
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.assertj
</groupId>
<artifactId>
assertj-core
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.awaitility
</groupId>
<artifactId>
awaitility
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
4.12
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
</project>
\ No newline at end of file
service/src/main/java/com/telephoners/krakyournet/ctf/beans/immutable
s/Immutable.java
→
ctf-common/src/main/java/com/telephoners/krakyournet/ctf/bean
s/Immutable.java
View file @
816e642d
package
com
.
telephoners
.
krakyournet
.
ctf
.
beans
.
immutables
;
package
com
.
telephoners
.
krakyournet
.
ctf
.
beans
;
import
org.immutables.value.Value
;
...
...
ctf-common/src/main/java/com/telephoners/krakyournet/ctf/beans/Task.java
0 → 100644
View file @
816e642d
package
com
.
telephoners
.
krakyournet
.
ctf
.
beans
;
import
org.immutables.value.Value
;
import
java.util.List
;
@Immutable
@Value
.
Immutable
public
interface
Task
{
String
getDescription
();
int
getLevel
();
List
<
String
>
getFlags
();
}
ctf-db/src/main/java/com/jifwin/ctf/db/repository/Repository.java
View file @
816e642d
...
...
@@ -22,6 +22,10 @@ public abstract class Repository<T>
dbClient
.
save
(
t
);
}
public
void
get
(
final
String
id
)
{
}
public
void
delete
(
final
String
id
)
{
//todo: revision
...
...
service/src/main/java/com/telephoners/krakyournet/ctf/beans/immutables/AbstractTestBean.java
deleted
100644 → 0
View file @
d229ba40
package
com
.
telephoners
.
krakyournet
.
ctf
.
beans
.
immutables
;
import
org.immutables.value.Value
;
@Immutable
@Value
.
Immutable
public
interface
AbstractTestBean
{
public
String
getId
();
}
Write
Preview
Markdown
is supported
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