Browse Source

nessaj初始化

李龙飞 3 years ago
parent
commit
fa2ff88886

+ 25 - 0
build.gradle

@@ -0,0 +1,25 @@
+allprojects{
+    apply plugin: 'java'
+    apply plugin: "idea"
+    group = 'com.phoenix.fun'
+    version = '1.0-SNAPSHOT'
+    sourceCompatibility = 1.8
+    targetCompatibility = 1.8
+}
+
+subprojects {
+    repositories {
+        mavenCentral()
+        maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
+        mavenLocal()
+    }
+
+    dependencies {
+        testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
+        testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
+    }
+
+    test {
+        useJUnitPlatform()
+    }
+}

+ 0 - 0
nessaj-core/build.gradle


+ 30 - 0
nessaj-core/src/main/java/com/phoenix/fun/nessaj/core/spi/SPI.java

@@ -0,0 +1,30 @@
+package com.phoenix.fun.nessaj.core.spi;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * com.phoenix.fun.nessaj.core.spi Created by 落叶 on 2020/12/25 at nessaj.
+ */
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ElementType.TYPE})
+public @interface SPI {
+
+  /**
+   * 配置环境变量中的key
+   *
+   * @return
+   */
+  String key() default "";
+
+  /**
+   * 默认实现
+   *
+   * @return
+   */
+  String defaultValue() default "";
+}

+ 0 - 0
nessaj-gateway/build.gradle


+ 0 - 0
nessaj-registry/build.gradle


+ 0 - 0
nessaj-transport/build.gradle


+ 6 - 0
settings.gradle

@@ -0,0 +1,6 @@
+rootProject.name = 'nessaj'
+include 'nessaj-gateway'
+include 'nessaj-core'
+include 'nessaj-registry'
+include 'nessaj-transport'
+