Forráskód Böngészése

脚本警告,忽略目录.

聂秋荣 7 éve
szülő
commit
744cfb53fc
2 módosított fájl, 17 hozzáadás és 10 törlés
  1. 10 8
      .gitignore
  2. 7 2
      build.gradle

+ 10 - 8
.gitignore

@@ -1,19 +1,21 @@
-/target/
-/.settings/
-/.project
-/.classpath
+**/target/
 
+**/.gitignore
 # IntelliJ project files
 .idea
 *.iml
-out
+**/out
 html
 
+# Eclipse project files
+**/.classpath
+**/.project
+**/.settings/
+**/bin/
+
 # gradle
 .gradle
-build
+**/build
 
 # MacOS
 .DS_Store
-/.gradle
-mybatis-plus/target/

+ 7 - 2
build.gradle

@@ -70,6 +70,7 @@ subprojects{
 	sourceCompatibility = "${javaVersion}"
 	targetCompatibility = "${javaVersion}"
 
+	//noinspection GroovyAssignabilityCheck
 	tasks.withType(JavaCompile) {
 		options.encoding = 'UTF-8'
 	}
@@ -109,7 +110,7 @@ subprojects{
 
 	tasks.whenTaskAdded { task ->
 		if (task.name.contains('uploadArchives')||task.name.contains("signArchives")){
-			task.enabled = new File(project.property('signing.secretKeyRingFile')).isFile()
+			task.enabled = new File(project.property('signing.secretKeyRingFile') as String).isFile()
 		}
 	}
 
@@ -122,14 +123,15 @@ subprojects{
 		repositories {
 			mavenDeployer {
 				beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
-
 				def userName = System.getProperty("un")
 				def passWord = System.getProperty("ps")
 				repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
+					//noinspection GroovyAssignabilityCheck
 					authentication(userName: userName, password: passWord)
 				}
 
 				snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
+					//noinspection GroovyAssignabilityCheck
 					authentication(userName: userName, password: passWord)
 				}
 
@@ -137,6 +139,7 @@ subprojects{
 				pom.artifactId = "$project.name"
 				pom.groupId = "$project.group"
 				pom.project {
+					//noinspection GroovyAssignabilityCheck
 					name 'mybatis-plus'
 					packaging 'jar'
 					description 'An enhanced toolkit of Mybatis to simplify development.'
@@ -150,6 +153,7 @@ subprojects{
 
 					licenses {
 						license {
+							//noinspection GroovyAssignabilityCheck
 							name 'The Apache License, Version 2.0'
 							url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
 						}
@@ -158,6 +162,7 @@ subprojects{
 					developers {
 						developer {
 							id 'baomidou'
+							//noinspection GroovyAssignabilityCheck
 							name 'hubin'
 							email 'jobob@qq.com'
 						}