forked from nvlad/tinypng-optimizer
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
97 lines (89 loc) · 3.04 KB
/
build.gradle
File metadata and controls
97 lines (89 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
buildscript {
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url "https://maven.aliyun.com/repository/central" }
mavenCentral()
google()
maven { url "https://plugins.gradle.org/m2/" }
gradlePluginPortal()
}
}
plugins {
id("java")
id 'org.jetbrains.intellij.platform' version '2.1.0'
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.12'
implementation('com.tinify:tinify:1.6.2') {
// exclude group: 'com.google.code.gson', module: 'gson'
// exclude group: 'com.squareup.okhttp3', module: 'okhttp'
// exclude group: 'com.squareup.okio', module: 'okio'
}
implementation ('io.sentry:sentry:1.7.16') {
exclude group: 'org.slf4j', module: 'slf4j-api'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'
}
}
dependencies {
intellijPlatform {
create(providers.gradleProperty('platformType'), providers.gradleProperty('platformVersion'))
bundledPlugin 'com.intellij.java'
pluginVerifier()
zipSigner()
instrumentationTools()
// plugins "coverage", "java-i18n", "remote-run", "properties"
}
}
group pluginGroup
version pluginVersion
intellijPlatform {
pluginConfiguration {
changeNotes = """
<h3> 1.1.7更新内容</h3>
- - 兼容2024.3以上的ide版本,更新gradle版本,更新插件依赖版本<br/>
<h3> 1.1.6更新内容</h3>
- 增加搜索过滤功能<br/>
- 优化数值设置方式<br/>
<br/>
<h3> 1.1.5更新内容</h3>
- 防止压缩后还有未保存文件,允许多次保存<br/>
- 压缩后清除缓存数据,调整压缩率显示<br/>
<br/>
<h3> 1.1.4更新内容</h3>
- 增加图片打标略过已打标文件功能,如果不略过将会给标记压缩数量+1<br/>
- 增加.9.png图片过滤<br/>
<br/>
<h3> 1.1.3 更新内容 </h3><br/>
- 对程序进行汉化<br/>
- 增加手动更改标记功能<br/>
- 增加webp图片压缩支持<br/>
- 后台压缩功能增加标记<br/>
<br/>
<h3>1.1.2 更新内容</h3><br/>
- 修复单张图片压缩问题<br/>
<br/>
<h3> 1.1.1 更新内容</h3><br/>
- 增加重复压缩功能<br/>
<br/>
<h3>1.1.0 更新内容</h3><br/>
- 添加标记功能<br/>
<br/>
<h3>Update "Usage this month" value on Open plugin settings or press Apply</h3><br/>
- Catch TinyPNG service errors.<br/>
""" // local variable for configuration cache compatibility
// Get the latest available change notes from the changelog file
ideaVersion {
sinceBuild = providers.gradleProperty("pluginSinceBuild")
untilBuild = providers.gradleProperty("pluginUntilBuild")
}
}
}