gradle
gradle官网 | gradle下载 | gradle论坛 | gradle插件 | Gradle教程
Maven-aliyun仓库 | Maven-jcenter仓库 | Maven-central仓库 | Maven-google仓库
spring initializr https://start.spring.io/ gradle -q javaToolchains 安装多版本jdk: wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.rpm rpm -ivh jdk-21_linux-x64_bin.rpm wget https://download.oracle.com/java/17/archive/jdk-17.0.10_linux-x64_bin.rpm rpm -ivh jdk-17.0.10_linux-x64_bin.rpm 切换版本 update-alternatives --config java update-alternatives --config javac ERROR!!! java.lang.UnsupportedClassVersionError: Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0 This is just a version mismatch. You have compiled your code using Java version 9 and your current JRE is version 8. Try upgrading your JRE to 9. 49 = Java 5 50 = Java 6 51 = Java 7 52 = Java 8 53 = Java 9 54 = Java 10 55 = Java 11 56 = Java 12 57 = Java 13 58 = Java 14 59 = Java 15 60 = Java 16 61 = Java 17 62 = Java 18 63 = Java 19 64 = Java 20 65 = Java 21
WikiItem xyz <div class='test'>xyz</div>
<div class='test'>xyz</div> <b>xyz</b> jcenter() mavenCentral() google() maven {url:maven-url} google 的 maven 仓库是不支持浏览的,如果你需要下载特定一个库,可以自行拼接这样的地址 https://dl.google.com/dl/android/maven2/com/android/databinding/compiler/3.0.1/compiler-3.0.1-sources.jar 来进行下载 repositories { // maven库 def aliMaven = "http://maven.aliyun.com/nexus/content/groups/public/" def cMaven = "https://repo1.maven.org/maven2" // 先从url中下载jar若没有找到,则在artifactUrls中寻找 maven { url aliMaven artifactUrls cMaven } }
Building Java Web Applications
Spring Boot gradle 集成servlet/jsp 教程及示例
SSM框架搭建(spring+springmvc+mybatis)
安装gradle插件 eclipse中依次打开“Help”–》“Eclipse Marketplace”,在搜索栏中输入“buildship”进行搜索 gradle tasks --all 显示所有的tasks gradle properties 显示所有project属性
Gradle – Spring 4 MVC Hello World Example
Gradle 搭建 SSM(Spring + SpringMVC + Mybatis)
android gradle依赖:implementation 和compile的区别
CentOS7安装gradle
cd /usr wget https://downloads.gradle.org/distributions/gradle-4.5.1-all.zip unzip gradle-4.5.1 #vim /etc/profile export GRADLE_HOME=/usr/gradle-4.5.1 export PATH=${GRADLE_HOME}/bin:${PATH} export GRADLE_USER_HOME=$GRADLE_HOME/.gradle gradle -version mkdir javatest cd javatest mkdir src/com/test/hello gradle init ... gradle build ./gradlew run #vim build.gradle apply plugin: 'java' apply plugin: 'application' mainClassName = 'hello.HelloWorld' repositories { mavenLocal() mavenCentral() } dependencies { compile "joda-time:joda-time:2.2" } jar { baseName = 'test1-gradle' version = '0.1.0' manifest { attributes( 'Class-Path': configurations.compile.collect { it.getName() }.join(' '), 'Main-Class': 'main.java.hello.HelloWorld' ) } } task wrapper(type: Wrapper) { gradleVersion = '1.11' }