nieqiuqiu пре 6 година
родитељ
комит
ab56c6b5a8

+ 8 - 0
build.gradle.kts

@@ -1,5 +1,7 @@
+import java.util.Date
 import groovy.util.Node
 import groovy.util.NodeList
+import java.text.SimpleDateFormat
 import nl.javadude.gradle.plugins.license.License
 
 buildscript {
@@ -111,6 +113,12 @@ subprojects {
         afterEvaluate {
             manifest {
                 attributes["Implementation-Version"] = version
+                attributes["Built-Gradle"] = gradle.gradleVersion
+                attributes["Bundle-DocURL"] = "https://mybatis.plus/"
+                attributes["Build-OS"] =  System.getProperty("os.name")
+                attributes["Built-By"] =  System.getProperty("user.name")
+                attributes["Build-Jdk"] =  System.getProperty("java.version")
+                attributes["Build-Timestamp"] =  SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Date())
             }
         }
     }

+ 15 - 0
mybatis-plus-core/src/test/java/com/baomidou/mybatisplus/core/MybatisMapperAnnotationBuilderTest.java

@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2011-2019, hubin (jobob@qq.com).
+ * <p>
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * <p>
+ * https://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package com.baomidou.mybatisplus.core;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;

+ 15 - 0
mybatis-plus-core/src/test/java/com/baomidou/mybatisplus/core/override/MybatisMapperMethodTest.java

@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2011-2019, hubin (jobob@qq.com).
+ * <p>
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * <p>
+ * https://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package com.baomidou.mybatisplus.core.override;
 
 import org.apache.ibatis.annotations.MapKey;

+ 15 - 0
mybatis-plus-extension/src/test/java/com/baomidou/mybatisplus/extension/handlers/MybatisMapWrapperTest.java

@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2011-2019, hubin (jobob@qq.com).
+ * <p>
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * <p>
+ * https://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package com.baomidou.mybatisplus.extension.handlers;
 
 import org.junit.jupiter.api.Test;

+ 15 - 0
mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/base/BaseDbTest.java

@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2011-2019, hubin (jobob@qq.com).
+ * <p>
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * <p>
+ * https://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package com.baomidou.mybatisplus.test.base;
 
 import com.alibaba.fastjson.JSON;