Gradle转Maven

This commit is contained in:
2023-02-09 13:29:20 +08:00
parent 582534512f
commit 3798326643
5 changed files with 34 additions and 37 deletions

2
.gitignore vendored
View File

@@ -17,3 +17,5 @@ gradle-app.setting
cache
error.log
gradle/
target
logs

View File

@@ -1,33 +0,0 @@
plugins {
id 'java-library'
id 'com.github.johnrengelman.shadow' version '6.1.0'
}
group 'icu.namophice'
version '1.0-SNAPSHOT'
description = 'slow'
sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation group: 'com.alibaba', name: 'fastjson', version: '1.2.76'
// RaspbarryPi驱动接口核心包
implementation group: 'com.pi4j', name: 'pi4j-core', version: '1.4'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
jar {
manifest {
attributes(
'Main-Class': 'icu.namophice.inkphotoalbum.Main'
)
}
}

30
pom.xml Normal file
View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>icu.namophice</groupId>
<artifactId>ink-photo-album</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2</artifactId>
<version>2.0.23</version>
</dependency>
<dependency>
<groupId>com.pi4j</groupId>
<artifactId>pi4j-core</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
</project>

View File

@@ -1,2 +0,0 @@
rootProject.name = 'ink-photo-album'

View File

@@ -1,6 +1,6 @@
package icu.namophice.inkphotoalbum.config;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson2.JSONObject;
import icu.namophice.inkphotoalbum.utils.CommonUtil;
import java.io.*;