Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaily Roberts2022-05-31 01:09:06 +0000
committerBaily Roberts2022-05-31 01:09:06 +0000
commit31447ca174c9d6b187a04ff25f83257f463c1b2f (patch)
treee8488a60491fce99131c863cde0e8ed296947ab0
parent27f25ac91a7ee3f1691003c81b55e921c1d12208 (diff)
downloadorg.eclipse.osee-bazel.tar.gz
org.eclipse.osee-bazel.tar.xz
org.eclipse.osee-bazel.zip
feature: Start OSEE bazel buildbazel
Signed-off-by: Baily Roberts <Baily.Roberts@boeing.com>
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/BUILD24
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/WORKSPACE39
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/annotation/AbstractFieldAnnotationHandler.java3
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/persistence/TwoWayXmlizable.java1
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/CompositeKeyHashMap.java10
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/AbstractEnumFunctionalInterfaceMap.java2
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumBiConsumerMap.java3
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumConsumerMap.java3
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumFunctionMap.java3
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumSupplierMap.java3
-rw-r--r--plugins/org.eclipse.osee.logger/BUILD5
-rw-r--r--plugins/org.eclipse.osee.logger/WORKSPACE0
12 files changed, 83 insertions, 13 deletions
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/BUILD b/plugins/org.eclipse.osee.framework.jdk.core/BUILD
new file mode 100644
index 00000000000..ed93cc42940
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.jdk.core/BUILD
@@ -0,0 +1,24 @@
+java_library(
+ name = "jdk_core",
+ srcs =
+ # glob(["src/org/eclipse/osee/framework/jdk/core/*/*.java"]),
+ # glob(["src/org/eclipse/osee/framework/jdk/core/persistence/*.java"]),
+ glob(["**/*.java"]),
+ deps = ["java_deps"]
+ )
+
+
+
+java_library(
+ name = "java_deps",
+ exports = [
+ "@maven//:com_fasterxml_jackson_core_jackson_core",
+ "@maven//:com_fasterxml_jackson_core_jackson_databind",
+ "@maven//:com_fasterxml_jackson_core_jackson_annotations",
+ "@maven//:commons_codec_commons_codec",
+ "@maven//:org_eclipse_jdt_org_eclipse_jdt_annotation",
+ "@maven//:javax_ws_rs_javax_ws_rs_api",
+ "@maven//:javax_activation_activation",
+ "@maven//:jakarta_xml_bind_jakarta_xml_bind_api",
+ ],
+)
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/WORKSPACE b/plugins/org.eclipse.osee.framework.jdk.core/WORKSPACE
new file mode 100644
index 00000000000..554cd4741bd
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.jdk.core/WORKSPACE
@@ -0,0 +1,39 @@
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+
+RULES_JVM_EXTERNAL_TAG = "4.2"
+RULES_JVM_EXTERNAL_SHA = "cd1a77b7b02e8e008439ca76fd34f5b07aecb8c752961f9640dea15e9e5ba1ca"
+
+http_archive(
+ name = "rules_jvm_external",
+ strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
+ sha256 = RULES_JVM_EXTERNAL_SHA,
+ url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG,
+)
+
+load("@rules_jvm_external//:repositories.bzl", "rules_jvm_external_deps")
+
+rules_jvm_external_deps()
+
+load("@rules_jvm_external//:setup.bzl", "rules_jvm_external_setup")
+
+rules_jvm_external_setup()
+
+load("@rules_jvm_external//:defs.bzl", "maven_install")
+
+maven_install(
+ artifacts = [
+ "com.fasterxml.jackson.core:jackson-core:2.10.3",
+ "com.fasterxml.jackson.core:jackson-databind:2.10.3",
+ "com.fasterxml.jackson.core:jackson-annotations:2.10.3",
+ "commons-codec:commons-codec:1.6",
+ "org.eclipse.jdt:org.eclipse.jdt.annotation:2.2.600",
+ "javax.ws.rs:javax.ws.rs-api:2.1",
+ "javax.activation:activation:1.1",
+ "jakarta.xml.bind:jakarta.xml.bind-api:3.0.1"
+ ],
+ repositories = [
+ # Private repositories are supported through HTTP Basic auth
+ "https://repo1.maven.org/maven2",
+ "https://download.eclipse.org/tools/orbit/downloads/drops/R20201130205003/",
+ ],
+)
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/annotation/AbstractFieldAnnotationHandler.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/annotation/AbstractFieldAnnotationHandler.java
index 75891bedce5..8a8514a1f17 100644
--- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/annotation/AbstractFieldAnnotationHandler.java
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/annotation/AbstractFieldAnnotationHandler.java
@@ -15,7 +15,6 @@ package org.eclipse.osee.framework.jdk.core.annotation;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
-
/**
* @author Roberto E. Escobar
*/
@@ -33,4 +32,4 @@ public abstract class AbstractFieldAnnotationHandler<T extends Annotation> imple
field.setAccessible(wasAccessible);
}
}
-} \ No newline at end of file
+}
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/persistence/TwoWayXmlizable.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/persistence/TwoWayXmlizable.java
index b74dfd7ece9..0a96237f5f0 100644
--- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/persistence/TwoWayXmlizable.java
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/persistence/TwoWayXmlizable.java
@@ -14,7 +14,6 @@
package org.eclipse.osee.framework.jdk.core.persistence;
import org.w3c.dom.Element;
-
/**
* @author Roberto E. Escobar
*/
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/CompositeKeyHashMap.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/CompositeKeyHashMap.java
index 921a9a59c48..75f72d0e567 100644
--- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/CompositeKeyHashMap.java
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/CompositeKeyHashMap.java
@@ -150,12 +150,12 @@ public class CompositeKeyHashMap<KeyOne, KeyTwo, Value> implements Map<Pair<KeyO
@Override
public Value put(Pair<KeyOne, KeyTwo> key, Value value) {
- put(key.getFirst(), key.getSecond());
+ putKeys(key.getFirst(), key.getSecond());
return map.put(key, value);
}
public Value put(KeyOne key1, KeyTwo key2, Value value) {
- put(key1, key2);
+ putKeys(key1, key2);
return map.put(new Pair<>(key1, key2), value);
}
@@ -164,11 +164,11 @@ public class CompositeKeyHashMap<KeyOne, KeyTwo, Value> implements Map<Pair<KeyO
map.putAll(copyMap);
for (Pair<KeyOne, KeyTwo> key : copyMap.keySet()) {
- put(key.getFirst(), key.getSecond());
+ putKeys(key.getFirst(), key.getSecond());
}
}
- private void put(KeyOne key1, KeyTwo key2) {
+ private void putKeys(KeyOne key1, KeyTwo key2) {
if (singleKeyMap.isSynchronized()) {
synchronized (singleKeyMap) {
singleKeyMap.put(key1, key2);
@@ -217,4 +217,4 @@ public class CompositeKeyHashMap<KeyOne, KeyTwo, Value> implements Map<Pair<KeyO
public Collection<Value> values() {
return map.values();
}
-} \ No newline at end of file
+}
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/AbstractEnumFunctionalInterfaceMap.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/AbstractEnumFunctionalInterfaceMap.java
index a9f1ab3b4d5..ce458df17e3 100644
--- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/AbstractEnumFunctionalInterfaceMap.java
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/AbstractEnumFunctionalInterfaceMap.java
@@ -176,7 +176,7 @@ public class AbstractEnumFunctionalInterfaceMap<K extends Enum<K>, F> implements
* provided key already exists.
*/
- protected AbstractEnumFunctionalInterfaceMap<K, F> ofEntriesLoader(Map.Entry<K, F>[] entries) {
+ private AbstractEnumFunctionalInterfaceMap<K, F> ofEntriesLoader(Map.Entry<K, F>[] entries) {
for (var entry : entries) {
var key = entry.getKey();
if (this.enumMap.containsKey(key)) {
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumBiConsumerMap.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumBiConsumerMap.java
index e6b89ee3ed1..57286992bae 100644
--- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumBiConsumerMap.java
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumBiConsumerMap.java
@@ -85,7 +85,8 @@ public class EnumBiConsumerMap<K extends Enum<K>, T, U> extends AbstractEnumFunc
public void put(K key, BiConsumer<T, U> function) {
throw new UnsupportedOperationException();
}
- }.ofEntriesLoader(entries);
+ };
+// }.ofEntriesLoader(entries);
}
}
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumConsumerMap.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumConsumerMap.java
index c14ec500531..7760c5fb591 100644
--- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumConsumerMap.java
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumConsumerMap.java
@@ -81,7 +81,8 @@ public class EnumConsumerMap<K extends Enum<K>, T> extends AbstractEnumFunctiona
public void put(K key, Consumer<T> function) {
throw new UnsupportedOperationException();
}
- }.ofEntriesLoader(entries);
+ };
+// }.ofEntriesLoader(entries);
}
}
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumFunctionMap.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumFunctionMap.java
index 4fdb19501f9..28ca09322e7 100644
--- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumFunctionMap.java
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumFunctionMap.java
@@ -85,7 +85,8 @@ public class EnumFunctionMap<K extends Enum<K>, T, R> extends AbstractEnumFuncti
public void put(K key, Function<T, R> function) {
throw new UnsupportedOperationException();
}
- }.ofEntriesLoader(entries);
+ };
+ // }.ofEntriesLoader(entries);
}
}
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumSupplierMap.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumSupplierMap.java
index f85cf4cf1f7..af3b1e76cd0 100644
--- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumSupplierMap.java
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumSupplierMap.java
@@ -81,7 +81,8 @@ public class EnumSupplierMap<K extends Enum<K>, T> extends AbstractEnumFunctiona
public void put(K key, Supplier<T> function) {
throw new UnsupportedOperationException();
}
- }.ofEntriesLoader(entries);
+ };
+ // }.ofEntriesLoader(entries);
}
}
diff --git a/plugins/org.eclipse.osee.logger/BUILD b/plugins/org.eclipse.osee.logger/BUILD
new file mode 100644
index 00000000000..adbf2cf015e
--- /dev/null
+++ b/plugins/org.eclipse.osee.logger/BUILD
@@ -0,0 +1,5 @@
+java_library(
+ name = "osee_logger",
+ srcs = ["src/org/eclipse/osee/logger/Log.java"],
+
+)
diff --git a/plugins/org.eclipse.osee.logger/WORKSPACE b/plugins/org.eclipse.osee.logger/WORKSPACE
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/plugins/org.eclipse.osee.logger/WORKSPACE

Back to the top