Commit 31d8e59c by 章家宝

兼容gradle的打包方式

1 parent 5d43e0f1
plugins {
id 'java-library'
id 'org.springframework.boot' version "${springBootVersion}"
id 'io.spring.dependency-management' version "${springDependencyManagementVersion}"
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
implementation project(":aus-framework")
api project(":aus-core")
implementation project(":aus-gsc")
implementation 'net.coobird:thumbnailator:0.4.17'
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'org.springframework.session:spring-session-data-redis'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap'
implementation 'com.google.protobuf:protobuf-java:3.25.5'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-hibernate5-jakarta'
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect'
implementation 'com.auth0:java-jwt:4.3.0'
implementation 'com.google.code.gson:gson'
implementation 'com.aliyun.oss:aliyun-sdk-oss:3.18.3'
implementation 'com.github.binarywang:weixin-java-miniapp:4.7.8.B'
implementation 'com.github.binarywang:weixin-java-pay:4.7.8.B'
implementation 'io.github.swalikh:wework-wehook-starter:1.0.0'
implementation 'com.alibaba:easyexcel:4.0.3'
runtimeOnly 'com.mysql:mysql-connector-j'
compileOnly("org.projectlombok:lombok")
annotationProcessor(
"org.projectlombok:lombok",
)
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
testImplementation('org.springframework.boot:spring-boot-starter-test')
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
// 排除 slf4j-simple,如果被其他库引入
configurations.all {
exclude group: 'org.slf4j', module: 'slf4j-simple'
}
implementation("io.swagger.core.v3:swagger-annotations:2.2.40")
implementation 'io.swagger.core.v3:swagger-core:2.2.15'
}
jar {
enabled = false
}
bootJar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archiveBaseName = 'aus-admin'
archiveVersion = '1.0.0'
enabled = true
}
//apply plugin: "org.summerframework.plugin"
//
//apiTypescript {
// generatedDir = '/aus-front/admin/src/api/'
// excludePath = '/rest/'
// excludeController "SecurityController"
//}
plugins {
id 'java-library'
id 'org.springframework.boot' version "${springBootVersion}"
id 'io.spring.dependency-management' version "${springDependencyManagementVersion}"
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
implementation project(":aus-framework")
api project(":aus-core")
implementation project(":aus-gsc")
implementation 'net.coobird:thumbnailator:0.4.17'
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
// implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap'
implementation 'com.google.protobuf:protobuf-java:3.25.5'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-hibernate5-jakarta'
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect'
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
implementation 'com.auth0:java-jwt:4.3.0'
implementation 'com.google.code.gson:gson'
implementation 'cn.hutool:hutool-all:5.8.40'
implementation 'com.google.zxing:core:3.5.1'
implementation 'com.google.zxing:javase:3.5.1'
implementation 'com.github.binarywang:weixin-java-mp:4.7.8.B'
implementation 'com.github.binarywang:weixin-java-miniapp:4.7.8.B'
implementation 'com.github.binarywang:weixin-java-pay:4.7.8.B'
implementation 'io.github.swalikh:wework-wehook-starter:1.0.0'
runtimeOnly 'com.mysql:mysql-connector-j'
compileOnly("org.projectlombok:lombok")
// implementation 'redis.clients:jedis:3.3.0'
// implementation 'com.github.jedis-lock:jedis-lock:1.0.0'
annotationProcessor(
"org.projectlombok:lombok",
)
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
testImplementation('org.springframework.boot:spring-boot-starter-test')
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
// 排除 slf4j-simple,如果被其他库引入
configurations.all {
exclude group: 'org.slf4j', module: 'slf4j-simple'
}
implementation("io.swagger.core.v3:swagger-annotations:2.2.40")
implementation 'io.swagger.core.v3:swagger-core:2.2.15'
}
jar {
enabled = false
}
bootJar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archiveBaseName = 'aus-api'
archiveVersion = '1.0.0'
enabled = true
}
//apply plugin: "org.summerframework.plugin"
//
//apiTypescript {
// generatedDir = '/aus-front/app/src/api/'
// excludePath = '/api/'
// excludeController "SecurityController"
//}
plugins {
id 'java'
id 'org.springframework.boot' version "${springBootVersion}"
id 'io.spring.dependency-management' version "${springDependencyManagementVersion}"
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.cloud:spring-cloud-config-server'
}
jar {
enabled = false
}
bootJar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archiveBaseName = 'aus-config'
archiveVersion = '1.0.0'
enabled = true
}
\ No newline at end of file
plugins {
id 'java-library'
id 'org.springframework.boot' version "${springBootVersion}"
id 'io.spring.dependency-management' version "${springDependencyManagementVersion}"
id 'org.hibernate.orm' version '6.6.15.Final'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
dependencies {
implementation project(":aus-framework")
api fileTree(dir: 'libs', include: '*.jar')
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-hibernate5-jakarta'
implementation 'cn.hutool:hutool-all:5.8.25'
implementation 'com.github.pemistahl:lingua:1.2.2'
implementation "org.apache.commons:commons-lang3:3.18.0"
implementation 'com.google.code.gson:gson'
implementation 'com.auth0:java-jwt:4.3.0'
implementation 'com.google.zxing:core:3.5.1'
implementation 'com.google.zxing:javase:3.5.1'
implementation("com.github.kokorin.jaffree:jaffree:2024.08.29")
implementation 'net.coobird:thumbnailator:0.4.17'
implementation 'com.aliyun.oss:aliyun-sdk-oss:3.18.3'
implementation 'com.itextpdf:html2pdf:6.1.0'
implementation 'com.alibaba:fastjson:2.0.57'
// implementation 'com.github.binarywang:weixin-java-mp:4.7.0'
implementation 'com.github.binarywang:weixin-java-miniapp:4.7.8.B'
implementation 'com.github.binarywang:weixin-java-pay:4.7.8.B'
implementation 'io.github.swalikh:wework-wehook-starter:1.0.0'
// implementation 'com.github.wechatpay-apiv3:wechatpay-java:0.2.17'
// implementation 'com.github.wechatpay-apiv3:wechatpay-apache-httpclient:0.6.0'
implementation 'io.swagger.core.v3:swagger-annotations:2.2.38'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
compileOnly('org.projectlombok:lombok')
annotationProcessor(
"org.projectlombok:lombok",
"org.hibernate:hibernate-jpamodelgen:6.1.7.Final",
)
// 排除 slf4j-simple,如果被其他库引入
configurations.all {
exclude group: 'org.slf4j', module: 'slf4j-simple'
}
implementation("com.belerweb:pinyin4j:2.5.1")
}
bootJar {
enabled = false
}
jar {
archiveBaseName = 'aus-core'
archiveVersion = '1.0.0'
enabled = true
}
//apply plugin: "org.summerframework.plugin"
//
//entityTypescript {
// //生成文件后的存储目录
// generatedDir = '/aus-front/lib/src/entity'
// //需要生成类的包路径
// generatePackage 'com.glsx.usedcar.module'
// importPackage 'import {AuditingTimeEntity,AuditingEntity} from "../../../core/orm/AuditingEntity";'
//}
//
//messageI18n {
// generateFile = '/aus-core/src/main/resources/entities_zh_CN.properties'
//}
//
//enumTypescript {
// generateFile = '/aus-front/lib/src/entity/enum_types.ts'
//}
//
//enumTypescriptI18n {
// generateFile = '/aus-front/admin/src/assets/i18n/zh_CN/enum.ts'
//}
//
//entityTypescriptI18n {
// generateFile = '/aus-front/admin/src/assets/i18n/zh_cn/entity.ts'
//}
package com.glsx.usedcar.module.account.dao;
import com.glsx.usedcar.module.account.entity.AccountPreferenceValue;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.*;
import org.springframework.transaction.annotation.Transactional;
import org.summerframework.orm.BaseRepository;
......@@ -20,8 +17,8 @@ public interface AccountPreferenceValueDao extends BaseRepository<AccountPrefere
@Transactional
@Query("UPDATE AccountPreferenceValue apv SET apv.deletedFlag = ?2 WHERE apv.preferenceId = ?1")
void updateDeletedFlagByPreferenceId(
@Param("preferenceId") Integer preferenceId,
@Param("deletedFlag") String deletedFlag
Integer preferenceId,
String deletedFlag
);
......
plugins {
id 'java-library'
id 'org.springframework.boot' version "${springBootVersion}"
id 'io.spring.dependency-management' version "${springDependencyManagementVersion}"
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'org.springframework.boot:spring-boot-starter-cache'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'com.google.code.gson:gson'
implementation 'com.github.penggle:kaptcha:2.3.2'
implementation 'com.github.ben-manes.caffeine:caffeine'
compileOnly 'io.minio:minio:8.5.6'
compileOnly "commons-io:commons-io:2.14.0"
implementation 'com.google.code.gson:gson'
implementation 'net.coobird:thumbnailator:0.4.17'
implementation 'cn.hutool:hutool-all:5.8.25'
implementation 'com.auth0:java-jwt:3.4.1'
// implementation 'org.apache.commons:commons-lang3:3.18.0'
implementation 'org.eclipse.angus:angus-activation:1.0.0'
implementation 'org.apache.pdfbox:pdfbox:3.0.4'
implementation 'org.apache.poi:poi:5.4.0'
implementation 'org.apache.poi:poi-ooxml:5.4.0'
implementation 'org.apache.poi:poi-scratchpad:5.4.0'
// 滑动验证码
implementation 'cloud.tianai.captcha:tianai-captcha-springboot-starter:1.4.1'
compileOnly 'org.projectlombok:lombok'
annotationProcessor("org.projectlombok:lombok")
}
bootJar {
enabled = false
}
jar {
archiveBaseName = 'aus-framework'
archiveVersion = '1.0.0'
enabled = true
}
plugins {
id 'java-library'
id 'org.springframework.boot' version "${springBootVersion}"
id 'io.spring.dependency-management' version "${springDependencyManagementVersion}"
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
// implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'com.google.code.gson:gson'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
compileOnly('org.projectlombok:lombok')
annotationProcessor(
"org.projectlombok:lombok",
)
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
// 排除 slf4j-simple,如果被其他库引入
configurations.all {
exclude group: 'org.slf4j', module: 'slf4j-simple'
}
}
bootJar {
enabled = false
}
jar {
archiveBaseName = 'aus-gsc'
archiveVersion = '1.0.0'
enabled = true
}
plugins {
id 'java-library'
id 'org.springframework.boot' version "${springBootVersion}"
id 'io.spring.dependency-management' version "${springDependencyManagementVersion}"
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
implementation project(":aus-framework")
api project(":aus-core")
implementation project(":aus-gsc")
implementation 'net.coobird:thumbnailator:0.4.17'
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap'
implementation 'com.google.protobuf:protobuf-java:3.25.5'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-hibernate5-jakarta'
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect'
implementation 'com.auth0:java-jwt:4.3.0'
implementation 'com.google.code.gson:gson'
implementation 'com.aliyun.oss:aliyun-sdk-oss:3.18.3'
runtimeOnly 'com.mysql:mysql-connector-j'
compileOnly("org.projectlombok:lombok")
annotationProcessor(
"org.projectlombok:lombok",
)
implementation 'com.github.binarywang:weixin-java-miniapp:4.7.8.B'
implementation 'com.github.binarywang:weixin-java-pay:4.7.8.B'
implementation 'io.github.swalikh:wework-wehook-starter:1.0.0'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
testImplementation('org.springframework.boot:spring-boot-starter-test')
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
// 排除 slf4j-simple,如果被其他库引入
configurations.all {
exclude group: 'org.slf4j', module: 'slf4j-simple'
}
}
jar {
enabled = false
}
bootJar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archiveBaseName = 'aus-task'
archiveVersion = '1.0.0'
enabled = true
}
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
group 'com.glsx.usedcar'
version '1.0.0'
// JVM 版本号要求
sourceCompatibility = 17
targetCompatibility = 17
// java编译的时候缺省状态下会因为中文字符而失败
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
repositories {
mavenLocal()
maven { url 'https://repo.spring.io/milestone' }
// maven {
// url "https://maven.aliyun.com/repository/central"
// allowInsecureProtocol true
// }
// maven {
// url "https://maven.aliyun.com/repository/gradle-plugin/"
// allowInsecureProtocol true
// }
// maven { url 'https://maven.aliyun.com/repository/spring' }
// maven { url 'https://maven.aliyun.com/repository/spring-plugin' }
maven {
url "https://releases.aspose.com/java/repo/"
allowInsecureProtocol true
}
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
ext {
set('springCloudVersion', "2025.0.0")
set('timefoldSolverVersion', "1.25.0")
}
buildscript {
ext {
springBootVersion = '3.5.4'
springDependencyManagementVersion = '1.1.7'
}
}
}
No preview for this file type
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-8.14.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
#!/bin/sh
#
# Copyright © 2015-2021 the original authors.
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# 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.
#
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
app_path=$0
# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
warn () {
echo "$*"
} >&2
die () {
echo
echo "$*"
echo
exit 1
} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD=java
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi
# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#
eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
rootProject.name = 'aus'
include 'aus-core'
include 'aus-api'
include 'aus-admin'
include 'aus-config'
include 'aus-gsc'
include 'aus-task'
include 'aus-framework'
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!