updated maven and gradle config

This commit is contained in:
strawmanbobi
2025-09-29 13:42:07 +08:00
parent 8958b06862
commit c635bb2791
10 changed files with 187 additions and 8 deletions

View File

@@ -2,6 +2,9 @@ apply plugin: 'com.android.library'
buildscript { buildscript {
repositories { repositories {
maven {
url "https://maven.aliyun.com/nexus/content/repositories/releases"
}
jcenter() jcenter()
google() google()
} }
@@ -13,11 +16,18 @@ buildscript {
} }
allprojects { allprojects {
repositories { repositories {
google() // and here maven {
url "https://maven.aliyun.com/nexus/content/repositories/releases/"
}
maven {
url "https://maven.aliyun.com/nexus/content/repositories/snapshots"
}
google()
jcenter() jcenter()
} }
} }
android { android {
namespace = "net.irext.webapi"
signingConfigs { signingConfigs {
irext_key { irext_key {
keyAlias 'irext-android' keyAlias 'irext-android'
@@ -26,13 +36,13 @@ android {
storePassword 'irext-android' storePassword 'irext-android'
} }
} }
compileSdkVersion 35 compileSdkVersion 34
buildToolsVersion "25.0.0" buildToolsVersion "25.0.0"
defaultConfig { defaultConfig {
minSdkVersion 19 minSdkVersion 33
targetSdkVersion 35 targetSdkVersion 34
versionCode 5 versionCode 5
versionName '0.2.2' versionName '1.5.0'
signingConfig signingConfigs.irext_key signingConfig signingConfigs.irext_key
} }
buildTypes { buildTypes {
@@ -40,7 +50,7 @@ android {
minifyEnabled true minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.irext_key signingConfig signingConfigs.irext_key
versionNameSuffix '0.2.4' versionNameSuffix '1.5.0'
} }
debug { debug {
debuggable true debuggable true

View File

@@ -1,6 +1,6 @@
#Wed Apr 15 19:56:17 CST 2020 #Mon Sep 22 11:10:35 CST 2025
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip

Binary file not shown.

Binary file not shown.

Binary file not shown.

78
web-sdk/pom.xml Normal file
View File

@@ -0,0 +1,78 @@
<?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>net.irext.webapi</groupId>
<artifactId>irext-webapi</artifactId>
<version>1.5.0</version>
<packaging>jar</packaging>
<name>irext-remote-index</name>
<description>Indexing API for IRext remote controller</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>com.squareup.okhttp</groupId>
<artifactId>okhttp</artifactId>
<version>2.7.5</version>
</dependency>
<dependency>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.9</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version> <executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

Binary file not shown.

View File

@@ -0,0 +1,78 @@
<?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>net.irext.webapi</groupId>
<artifactId>irext-webapi</artifactId>
<version>1.5.0</version>
<packaging>jar</packaging>
<name>irext-remote-index</name>
<description>Indexing API for IRext remote controller</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>com.squareup.okhttp</groupId>
<artifactId>okhttp</artifactId>
<version>2.7.5</version>
</dependency>
<dependency>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.9</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version> <executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<javadocOptions>
<docletArtifacts>
<docletArtifact />
</docletArtifacts>
<tagletArtifacts>
<tagletArtifact />
</tagletArtifacts>
<javadocResourcesDirectory>src/main/javadoc</javadocResourcesDirectory>
</javadocOptions>

View File

@@ -0,0 +1,3 @@
artifactId=irext-webapi
groupId=net.irext.webapi
version=1.5.0