Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ target
*/.classpath
*/.project
*/.settings
*/build
build
.idea
.gradle
16 changes: 16 additions & 0 deletions actions/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* This file was generated by the Gradle 'init' task.
*/

plugins {
id 'com.ibm.common.java-conventions'
}

dependencies {
implementation project(':activitystreams-core')
implementation 'com.google.code.gson:gson:2.2.4'
implementation 'com.google.guava:guava:16.0.1'
testImplementation 'junit:junit:4.11'
}

description = 'Activity Streams 2.0 - Actions'
142 changes: 0 additions & 142 deletions actions/pom.xml

This file was deleted.

13 changes: 13 additions & 0 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* This file was generated by the Gradle 'init' task.
*/

plugins {
// Support convention plugins written in Groovy. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build.
id 'groovy-gradle-plugin'
}

repositories {
// Use the plugin portal to apply community plugins in convention plugins.
gradlePluginPortal()
}
31 changes: 31 additions & 0 deletions buildSrc/src/main/groovy/com.ibm.common.java-conventions.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* This file was generated by the Gradle 'init' task.
*/

plugins {
id 'java-library'
id 'maven-publish'
}

repositories {
mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}

group = 'com.ibm.common'
version = '0.0.1-SNAPSHOT'
java.sourceCompatibility = JavaVersion.VERSION_1_8

publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
16 changes: 16 additions & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* This file was generated by the Gradle 'init' task.
*/

plugins {
id 'com.ibm.common.java-conventions'
}

dependencies {
implementation 'com.google.code.gson:gson:2.2.4'
implementation 'com.google.guava:guava:16.0.1'
implementation 'joda-time:joda-time:2.3'
testImplementation 'junit:junit:4.11'
}

description = 'Activity Streams 2.0 - Core'
131 changes: 0 additions & 131 deletions core/pom.xml

This file was deleted.

16 changes: 0 additions & 16 deletions core/src/main/java/com/ibm/common/activitystreams/ASObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -1478,22 +1478,6 @@ public B set(String key, Supplier<?> value) {
}
}

/**
* Set a property from a given callable
* @param key String
* @param value Callable<V>
* @return B
**/
public B set(String key, Callable<?> value) {
try {
return value == null ?
(B)this :
set(key,value.call());
} catch (Throwable t) {
throw propagate(t);
}
}

/**
* Set the scope
* @param url String
Expand Down
Loading