Skip to content

Commit

Permalink
2022.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeCqupt committed Feb 16, 2022
1 parent fe33f78 commit 749672a
Show file tree
Hide file tree
Showing 14 changed files with 95 additions and 89 deletions.
2 changes: 1 addition & 1 deletion java/baiduads-sdk-auto/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.1
info:
description: '''dev2.baidu.com'' api schema'
title: dev2 api schema
version: 2022.0.0-SNAPSHOT
version: 2022.0.0
servers:
- url: https://api.baidu.com/
- url: http://api.baidu.com/
Expand Down
2 changes: 1 addition & 1 deletion java/baiduads-sdk-auto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'

group = 'com.baidu.dev2'
version = '2022.0.0-SNAPSHOT'
version = '2022.0.0'

buildscript {
repositories {
Expand Down
4 changes: 2 additions & 2 deletions java/baiduads-sdk-auto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<parent>
<groupId>com.baidu.dev2</groupId>
<artifactId>baiduads-sdk-parent</artifactId>
<version>2022.0.0-SNAPSHOT</version>
<version>2022.0.0</version>
</parent>
<groupId>com.baidu.dev2</groupId>
<artifactId>baiduads-sdk-auto</artifactId>
<version>2022.0.0-SNAPSHOT</version>
<version>2022.0.0</version>
<name>baiduads-sdk-auto</name>
<description>dev2-auto-sdk</description>
<url>https://github.com/openapitools/openapi-generator</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public ApiClient(CloseableHttpClient httpClient) {
dateFormat = ApiClient.buildDefaultDateFormat();

// Set default User-Agent.
setUserAgent("baiduads-sdk/2022.0.0-SNAPSHOT/java");
setUserAgent("baiduads-sdk/2022.0.0/java");

// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap<String, Authentication>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Constants {
public static final String SDK_MODULE_NAME = "baiduads-sdk";

public static final String SDK_AUTO_MODULE_NAME = "baiduads-sdk-auto";

public static final String SDK_THIRDPARTY_MODULE_NAME = "baiduads-sdk-thirdparty";

public static final String BUILD_DIR_NAME = "target";
Expand Down
24 changes: 5 additions & 19 deletions java/baiduads-sdk-thirdparty/pom.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
<?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">
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.baidu.dev2</groupId>
<artifactId>baiduads-sdk-parent</artifactId>
<version>2022.0.0-SNAPSHOT</version>
<version>2022.0.0</version>
</parent>

<groupId>com.baidu.dev2</groupId>
<artifactId>baiduads-sdk-thirdparty</artifactId>
<version>2022.0.0-SNAPSHOT</version>

<version>2022.0.0</version>
<name>baiduads-sdk-thirdparty</name>
<url>https://github.com/baidu/baiduads-sdk</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>8</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>8</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>io.swagger</groupId>
Expand Down Expand Up @@ -103,14 +98,7 @@
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.12.1</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.20</version>
</dependency>
</dependencies>


<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -201,13 +189,11 @@
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

</project>
50 changes: 50 additions & 0 deletions java/baiduads-sdk/dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?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/maven-v4_0_0.xsd">
<parent>
<artifactId>baiduads-sdk-parent</artifactId>
<groupId>com.baidu.dev2</groupId>
<version>2022.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>baiduads-sdk</artifactId>
<version>2022.0.0</version>
<build>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createSourcesJar>true</createSourcesJar>
<artifactSet>
<includes>
<include>*:*</include>
</includes>
</artifactSet>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>hamcrest-core</artifactId>
<groupId>org.hamcrest</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>

9 changes: 3 additions & 6 deletions java/baiduads-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,25 @@
<parent>
<groupId>com.baidu.dev2</groupId>
<artifactId>baiduads-sdk-parent</artifactId>
<version>2022.0.0-SNAPSHOT</version>
<version>2022.0.0</version>
</parent>
<artifactId>baiduads-sdk</artifactId>
<version>2022.0.0-SNAPSHOT</version>
<version>2022.0.0</version>
<dependencies>
<dependency>
<groupId>com.baidu.dev2</groupId>
<artifactId>baiduads-sdk-auto</artifactId>
<version>2022.0.0-SNAPSHOT</version>
<version>2022.0.0</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<executions>
Expand Down
77 changes: 25 additions & 52 deletions java/pom.xml
Original file line number Diff line number Diff line change
@@ -1,58 +1,54 @@
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.baidu.dev2</groupId>
<artifactId>baiduads-sdk-parent</artifactId>
<version>2022.0.0-SNAPSHOT</version>
<version>2022.0.0</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<description>baiduads-sdk for java</description>
<url>https://github.com/baidu/baiduads-sdk</url>
<modules>
<module>baiduads-sdk</module>
<module>baiduads-sdk-auto</module>
<module>baiduads-sdk-thirdparty</module>
</modules>

<scm>
<connection>scm:git:https://github.com/baidu/baiduads-sdk.git</connection>
<developerConnection>scm:git:https://github.com/baidu/baiduads-sdk.git</developerConnection>
<url>https://github.com/baidu/baiduads-sdk/tree/main/java</url>
</scm>

<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>


<developers>
<developer>
<name>joecqupt</name>
<email>[email protected]</email>
</developer>
</developers>


<modules>
<module>baiduads-sdk</module>
<module>baiduads-sdk-auto</module>
<module>baiduads-sdk-thirdparty</module>
</modules>
<scm>
<connection>scm:git:https://github.com/baidu/baiduads-sdk.git</connection>
<developerConnection>scm:git:https://github.com/baidu/baiduads-sdk.git</developerConnection>
<url>https://github.com/baidu/baiduads-sdk/tree/main/java</url>
</scm>
<distributionManagement>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<properties>
<junit.version>4.12</junit.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>1.8</maven.compiler.target>
<junit.version>4.12</junit.version>
</properties>


<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.20</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand All @@ -61,19 +57,6 @@
</dependency>
</dependencies>
</dependencyManagement>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>


<build>
<plugins>
<plugin>
Expand All @@ -89,7 +72,6 @@
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.0</version>
<executions>
Expand All @@ -102,7 +84,6 @@
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
Expand All @@ -115,7 +96,6 @@
</execution>
</executions>
<configuration>
<!-- Prevent `gpg` from using pinentry programs -->
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
Expand All @@ -130,25 +110,18 @@
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<!--这个配置会在版本号不带SNAPSHOT的时候,指定release你的jar包到maven官方仓库-->
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>

<plugin>
<groupId>com.baidu.dev2</groupId>
<artifactId>baiduads-sdk-package-maven-plugin</artifactId>
<version>2022.0.0-SNAPSHOT</version>
</plugin>


<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>

</plugins>
</build>

</project>
2 changes: 1 addition & 1 deletion python/baiduads-sdk-auto/baiduads/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'baiduads-sdk/2022.0.0-SNAPSHOT/python'
self.user_agent = 'baiduads-sdk/2022.0.0/python'

def __enter__(self):
return self
Expand Down
4 changes: 2 additions & 2 deletions python/baiduads-sdk-auto/baiduads/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,8 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 2022.0.0-SNAPSHOT\n"\
"SDK Package Version: 2022.0.0-SNAPSHOT".\
"Version of the API: 2022.0.0\n"\
"SDK Package Version: 2022.0.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion python/baiduads-sdk-auto/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from setuptools import setup, find_packages # noqa: H301

NAME = "baiduads-sdk-auto-snapshot"
NAME = "baiduads-sdk-auto"
VERSION = "2022.0.0"
# To install the library, run the following
#
Expand Down
2 changes: 1 addition & 1 deletion python/baiduads-sdk/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
baiduads-sdk-auto-snapshot >= 2022.0.0
baiduads-sdk-auto >= 2022.0.0
2 changes: 1 addition & 1 deletion python/baiduads-sdk/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from setuptools import setup, find_packages # noqa: H301

NAME = "baiduads-sdk-snapshot"
NAME = "baiduads-sdk"
VERSION = "2022.0.0"
# To install the library, run the following
#
Expand Down

0 comments on commit 749672a

Please sign in to comment.